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