Permalink
Browse files

Merge branch 'w15_MDL-32263_m22_enroladmin' of git://github.com/skoda…

…k/moodle into MOODLE_22_STABLE
  • Loading branch information...
2 parents 2719e7c + 43400d6 commit d9cc6b7a31cb95bd8f68b8fe3e5007541827e21b Sam Hemelryk 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 d9cc6b7

Please sign in to comment.