fix permissions

This commit is contained in:
Jean-Christian Paul Denis 2023-07-30 10:21:48 +02:00
parent 5dd0eab5c0
commit 9eda7c7eae
Signed by: JcDenis
GPG Key ID: 1B5B8C5B90B6C951

View File

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