From bcb368d988aa46ee763120f9f47c6d0521b9a999 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Mon, 9 Apr 2012 19:59:19 +0200 Subject: [PATCH] MDL-32263 remove broken admin test in enrol_check_plugins() --- lib/enrollib.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/lib/enrollib.php b/lib/enrollib.php index befe5d2a728..ada83dd6b43 100644 --- a/lib/enrollib.php +++ b/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