Skip to content

Commit d47213b

Browse files
committed
Improve 'shouldApplyRestriction' function in Restrict.php
1 parent 735a203 commit d47213b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Restrict.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,6 @@ class Restrict
1313
*/
1414
public static function shouldApplyRestriction(?User $user): bool
1515
{
16-
return Statamic::isCpRoute() && $user && ! $user->isSuper();
16+
return Statamic::isCpRoute() && $user?->isSuper() === false;
1717
}
1818
}

0 commit comments

Comments
 (0)