wip
This commit is contained in:
@@ -4,12 +4,17 @@ namespace App\Modules\FilamentPermission\Repositories;
|
||||
|
||||
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