fix permissions

This commit is contained in:
Jean-Christian Paul 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 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;
} }
} }