Skip to content

Commit

Permalink
Merge pull request #277 from bezhanSalleh/fix/#274
Browse files Browse the repository at this point in the history
fixes #274
  • Loading branch information
bezhanSalleh authored Nov 22, 2023
2 parents 161010d + 3cae033 commit c433df7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/Support/Utils.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public static function isResourceNavigationBadgeEnabled(): bool

public static function isScopedToTenant(): bool
{
return config('filament-shield.shield_resource.is_scoped_to_tenant');
return config('filament-shield.shield_resource.is_scoped_to_tenant', true);
}

public static function isResourceNavigationGroupEnabled(): bool
Expand Down Expand Up @@ -213,17 +213,17 @@ public static function getPermissionModel(): string
return config('permission.models.permission', 'Spatie\\Permission\\Models\\Permission');
}

public static function discoverAllResources(): string
public static function discoverAllResources(): bool
{
return config('filament-shield.discovery.discover_all_resources', false);
}

public static function discoverAllWidgets(): string
public static function discoverAllWidgets(): bool
{
return config('filament-shield.discovery.discover_all_widgets', false);
}

public static function discoverAllPages(): string
public static function discoverAllPages(): bool
{
return config('filament-shield.discovery.discover_all_pages', false);
}
Expand Down

0 comments on commit c433df7

Please sign in to comment.