Skip to content

Commit

Permalink
Merge pull request #47 from LingMyat/multi-tenant
Browse files Browse the repository at this point in the history
Adding isScopedToTenant at ExceptionResource
  • Loading branch information
bezhanSalleh authored Jan 24, 2024
2 parents 4f4bf65 + c4c2fca commit f6c899c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
3 changes: 3 additions & 0 deletions config/filament-exceptions.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
/** Whether to show a navigation badge. No effect, if navigation_enabled it set to false. */
'navigation_badge' => true,

/** Whether to scope exceptions to tenant */
'is_scoped_to_tenant' => true,

/** Icons to use for navigation (if enabled) and pills */
'icons' => [
'navigation' => 'heroicon-o-cpu-chip',
Expand Down
5 changes: 5 additions & 0 deletions src/Resources/ExceptionResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,11 @@ public static function getNavigationSort(): ?int
return config('filament-exceptions.navigation_sort');
}

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

public static function canGloballySearch(): bool
{
return config('filament-exceptions.is_globally_searchable')
Expand Down

0 comments on commit f6c899c

Please sign in to comment.