Skip to content

Commit

Permalink
Update PermissionResource.php (#159)
Browse files Browse the repository at this point in the history
Bugfix: missing id attribute added
  • Loading branch information
tharindarodrigo authored Feb 5, 2024
1 parent 0c706be commit c111580
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Resources/PermissionResource.php
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ public static function form(Form $form): Form
$query->where('guard_name', $get('guard_name'));
}
if(Filament::hasTenancy()) {
return $query->where(config('permission.column_names.team_foreign_key'), Filament::getTenant());
return $query->where(config('permission.column_names.team_foreign_key'), Filament::getTenant()->id);
}
return $query;
}
Expand Down

0 comments on commit c111580

Please sign in to comment.