Skip to content

Commit

Permalink
Update PermissionResource (#222)
Browse files Browse the repository at this point in the history
  • Loading branch information
abhi8249 authored Nov 19, 2024
1 parent 3ae31bd commit c8a2593
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Resources/PermissionResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,10 @@

class PermissionResource extends Resource
{
protected static bool $isScopedToTenant = false;
public static function isScopedToTenant(): bool
{
return config('filament-spatie-roles-permissions.scope_to_tenant', true);
}

public static function getNavigationIcon(): ?string
{
Expand Down

0 comments on commit c8a2593

Please sign in to comment.