From 3cae03336a8a833f3e268a38fa96db06763dd6d8 Mon Sep 17 00:00:00 2001 From: Bezhan Salleh Date: Thu, 23 Nov 2023 00:47:42 +0430 Subject: [PATCH] fixes #274 --- src/Support/Utils.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Support/Utils.php b/src/Support/Utils.php index 8c96477..8b5feaf 100644 --- a/src/Support/Utils.php +++ b/src/Support/Utils.php @@ -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 @@ -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); }