From c8654bb0bbb3d54f73f55594ed529ab79a823916 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 4 Nov 2023 20:36:26 +0100 Subject: [PATCH] fix perms --- src/My.php | 1 + 1 file changed, 1 insertion(+) diff --git a/src/My.php b/src/My.php index fb9c780..d85867b 100644 --- a/src/My.php +++ b/src/My.php @@ -19,6 +19,7 @@ class My extends MyPlugin public static function checkCustomContext(int $context): ?bool { return match ($context) { + // Add usage perm to backend self::MANAGE, self::MENU => App::task()->checkContext('BACKEND') && App::auth()->check(App::auth()->makePermissions([ App::auth()::PERMISSION_USAGE,