Index: trunk/core/kernel/application.php =================================================================== diff -u -r4626 -r4627 --- trunk/core/kernel/application.php (.../application.php) (revision 4626) +++ trunk/core/kernel/application.php (.../application.php) (revision 4627) @@ -1783,13 +1783,13 @@ * @param int $type permission type {1 - system, 0 - per category} * @return int */ - function CheckPermission($name, $type, $cat_id = null) + function CheckPermission($name, $type = 1, $cat_id = null) { - if ($this->GetVar('u_id') == -1 && ($name == 'ADMIN' || $name == 'LOGIN')) { - // "root" is permitted to login in any case - return 1; + if ($this->GetVar('u_id') == -1) { + // "root" is allowed anywhere + return $name == 'SYSTEM_ACCESS.READONLY' ? 0 : 1; } - + if ($type == 1) { // "system" permission are always checked per "Home" category (ID = 0) $cat_id = 0;