Hook: allow all on CLI

fixes #13691
This commit is contained in:
Thomas Gelf 2016-12-19 21:14:32 +01:00
parent e9eeb030a6
commit 361bfc5081
1 changed files with 4 additions and 0 deletions

View File

@ -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)
);