fix permissions

This commit is contained in:
Jean-Christian Denis 2023-07-30 10:21:32 +02:00
parent 1d3eca3a9c
commit 39dd35decb
Signed by: JcDenis
GPG key ID: 1B5B8C5B90B6C951

View file

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