Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't require $authen{admin_module} is a subset of $authen{user_module}.
This changes the logic of how $authen{admin_module} is used to restrict modules for the admin course. Instead of looping over all user_modules, and requiring that module also be listed in admin_modules, only loop over the modules listed in admin_modules when logging into the admin course. This fixes an issue with LDAP (and maybe other authen modules), where if they are listed in the user_module list, they have to also be listed in the admin_module list, otherwise the error message generated for this causes the authentication to fail.
- Loading branch information