This commit is contained in:
2025-09-08 14:38:55 +05:00
parent b509a23f7a
commit cf8146fb4c
3 changed files with 16 additions and 6 deletions

View File

@@ -30,4 +30,12 @@ class NovaPermissionRepo
{
return fn () => Gate::allows('isAdmin', auth()->user());
}
/**
* Check if user is a currency maintainer
*/
public static function isCurrencyMaintainer(): Closure
{
return fn () => Gate::allows('isCurrencyMaintainer', auth()->user());
}
}