fix permissions
This commit is contained in:
parent
5dd0eab5c0
commit
9eda7c7eae
@ -27,7 +27,7 @@ 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;
|
||||
}
|
||||
/**
|
||||
* List of allowed backup folder
|
||||
|
Loading…
Reference in New Issue
Block a user