fix perms
This commit is contained in:
parent
c871bb1e4c
commit
c8654bb0bb
1 changed files with 1 additions and 0 deletions
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue