wip
This commit is contained in:
1 parent
cc3a9cd854
commit
8c33cc6645
6 files changed
+56
-34
No files matched your search
@@ -4,12 +4,17 @@
|
||||
|
||||
class FilamentPermissionRepository
|
||||
{
|
||||
public static function hiddenOnCreate(string $context): bool
|
||||
{
|
||||
return $context === 'create';
|
||||
}
|
||||
|
||||
public static function forClients(): bool
|
||||
{
|
||||
return ! user()->isSystemUser();
|
||||
}
|
||||
|
||||
public static function defaultSystemInput(string $context)
|
||||
public static function defaultSystemInput(string $context): bool
|
||||
{
|
||||
if (user()->isSystemUser()) {
|
||||
return false;
|
||||
|
||||
Reference in new issue
Block a user