-
Notifications
You must be signed in to change notification settings - Fork 29
Adds code to delete all the access if no access returned from Ldap and enable_synchronize_access_from_ldap=1, #PG-4868 #415
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 5.x-dev
Are you sure you want to change the base?
Conversation
…d enable_synchronize_access_from_ldap=1, #PG-4868
LdapInterop/UserSynchronizer.php
Outdated
| } else { | ||
| $this->logger->log('warning', "UserSynchronizer::{func}: User '{user}' has no access in LDAP, but access synchronization is enabled.", array( | ||
| 'func' => __FUNCTION__, | ||
| 'user' => $piwikLogin | ||
| )); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@AltamashShaikh Not sure if this is ready for review yet, but this error message is now wrong. Is there any case where accessSynchronization is disabled and this function is called? I don't think there should be - having the if is nice, but maybe it should be further up the stack?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@james-hill-matomo Updated logic.
|
@james-hill-matomo Thanks for the suggestion, I have applied them here and updated the test case to be check the behaviour more accurately. |
Description
Adds code to delete all the access if no access returned from Ldap and enable_synchronize_access_from_ldap=1
Issue No
#PG-4868
Steps to Replicate the Issue
Checklist