mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-31 01:34:09 +02:00
parent
e9eeb030a6
commit
361bfc5081
@ -184,6 +184,10 @@ class Hook
|
||||
*/
|
||||
protected static function hasPermission($class)
|
||||
{
|
||||
if (Icinga::app()->isCli()) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return Auth::getInstance()->hasPermission(
|
||||
Manager::MODULE_PERMISSION_NS . self::extractModuleName($class)
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user