wip
This commit is contained in:
1 parent
310590010c
commit
65a47e8028
5 files changed
+91
-28
No files matched your search
@@ -0,0 +1,20 @@
|
||||
<?php
|
||||
|
||||
namespace App\Modules\FilamentPermission\Repositories;
|
||||
|
||||
class FilamentPermissionRepository
|
||||
{
|
||||
public static function forClients(): bool
|
||||
{
|
||||
return ! user()->isSystemUser();
|
||||
}
|
||||
|
||||
public static function defaultSystemInput(string $context)
|
||||
{
|
||||
if (user()->isSystemUser()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return $context === 'create';
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user