From 39dd35decb67a6d389d749a49b3fd7cf2c40d368 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sun, 30 Jul 2023 10:21:32 +0200 Subject: [PATCH] fix permissions --- src/My.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/My.php b/src/My.php index cbf14ea..c2c5876 100644 --- a/src/My.php +++ b/src/My.php @@ -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; } }