mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-27 07:44:04 +02:00
Hook: allow all on CLI
(cherry picked from commit 361bfc50814d7138e4c5da60c98837c35093edbf) Signed-off-by: Eric Lippmann <eric.lippmann@icinga.com>
This commit is contained in:
parent
0b4390411c
commit
0ae33991bf
@ -184,6 +184,10 @@ class Hook
|
|||||||
*/
|
*/
|
||||||
protected static function hasPermission($class)
|
protected static function hasPermission($class)
|
||||||
{
|
{
|
||||||
|
if (Icinga::app()->isCli()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
|
||||||
return Auth::getInstance()->hasPermission(
|
return Auth::getInstance()->hasPermission(
|
||||||
Manager::MODULE_PERMISSION_NS . self::extractModuleName($class)
|
Manager::MODULE_PERMISSION_NS . self::extractModuleName($class)
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user