diff --git a/src/Restrict.php b/src/Restrict.php index 3833372..45864b5 100644 --- a/src/Restrict.php +++ b/src/Restrict.php @@ -13,6 +13,6 @@ class Restrict */ public static function shouldApplyRestriction(?User $user): bool { - return Statamic::isCpRoute() && $user && ! $user->isSuper(); + return Statamic::isCpRoute() && $user?->isSuper() === false; } }