Browse files

MDL-32263 remove broken admin test in enrol_check_plugins()

  • Loading branch information...
1 parent f24ff8f commit 43400d60ded658674714ec45096cf908d9f8167c @skodak skodak committed Apr 9, 2012
Showing with 2 additions and 5 deletions.
  1. +2 −5 lib/enrollib.php
View
7 lib/enrollib.php
@@ -204,11 +204,8 @@ function enrol_check_plugins($user) {
return;
}
- if (is_siteadmin()) {
- // no sync for admin user, please use admin accounts only for admin tasks like the unix root user!
- // if plugin fails on sync admins need to be able to log in and fix the settings
- return;
- }
+ // originally there was a broken admin test, but accidentally it was non-functional in 2.2,
+ // which proved it was actually not necessary.
static $inprogress = array(); // To prevent this function being called more than once in an invocation

0 comments on commit 43400d6

Please sign in to comment.