fix permissions
This commit is contained in:
parent
1d3eca3a9c
commit
39dd35decb
1 changed files with 1 additions and 1 deletions
|
@ -38,6 +38,6 @@ class My extends MyPlugin
|
|||
|
||||
public static function checkCustomContext(int $context): ?bool
|
||||
{
|
||||
return dcCore::app()->auth->isSuperAdmin();
|
||||
return in_array($context, [My::BACKEND, My::MANAGE, My::MENU]) ? dcCore::app()->auth->isSuperAdmin() : null;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue