From 36b4b65367510c29567fa1176754afdcac5ed3e1 Mon Sep 17 00:00:00 2001 From: Jean-Christian Denis Date: Sat, 21 Oct 2023 22:52:54 +0200 Subject: [PATCH] cosmetic --- src/Backend.php | 16 +++------------- src/Manage.php | 4 ++-- src/My.php | 16 ++++++++++++---- 3 files changed, 17 insertions(+), 19 deletions(-) diff --git a/src/Backend.php b/src/Backend.php index 603111a..d3f9f64 100644 --- a/src/Backend.php +++ b/src/Backend.php @@ -1,15 +1,5 @@ checkContext('BACKEND') && App::auth()->isSuperAdmin(); + // Limit to super admin + return match ($context) { + self::MODULE => App::auth()->isSuperAdmin(), + default => null, + }; } }