fix permissions
This commit is contained in:
parent
5dd0eab5c0
commit
9eda7c7eae
1 changed files with 1 additions and 1 deletions
|
@ -27,7 +27,7 @@ class My extends MyPlugin
|
||||||
|
|
||||||
public static function checkCustomContext(int $context): ?bool
|
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
|
* List of allowed backup folder
|
||||||
|
|
Loading…
Reference in a new issue