diff --git a/src/My.php b/src/My.php index bbb598c..042801f 100644 --- a/src/My.php +++ b/src/My.php @@ -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