This commit is contained in:
2025-11-04 22:04:41 +05:00
parent 310590010c
commit 65a47e8028
5 changed files with 91 additions and 28 deletions

View File

@@ -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';
}
}