ALLOWED_MEDIA_EXTENSION */ public const ALLOWED_MEDIA_EXTENSION = ['png', 'jpg', 'gif', 'bmp', 'jpeg']; public static function checkCustomContext(int $context): ?bool { return match ($context) { // Add content admin perm to backend self::MENU, self::MANAGE => App::task()->checkContext('BACKEND') && App::auth()->check(App::auth()->makePermissions([ App::auth()::PERMISSION_CONTENT_ADMIN, ]), App::blog()->id()), default => null, }; } }