* [task#116512] Prefer to use the referenced or equivalent permission.
This commit is contained in:
@@ -1281,8 +1281,6 @@ eof;
|
||||
$module = strtolower($module);
|
||||
$method = strtolower($method);
|
||||
|
||||
if($object) return self::getUserPriv($module, $method, $object, $vars);
|
||||
|
||||
global $config;
|
||||
if(isset($config->{$module}->groupPrivs[$method]))
|
||||
{
|
||||
@@ -1295,6 +1293,8 @@ eof;
|
||||
}
|
||||
}
|
||||
|
||||
if($object) return self::getUserPriv($module, $method, $object, $vars);
|
||||
|
||||
if(!isset(self::$userPrivs[$module][$method][$vars])) self::$userPrivs[$module][$method][$vars] = self::getUserPriv($module, $method, $object, $vars);
|
||||
|
||||
return self::$userPrivs[$module][$method][$vars];
|
||||
|
||||
Reference in New Issue
Block a user