Skip to content

Commit b0e0196

Browse files
fix(scope): cast filters to json before merge with scope (#622)
1 parent 9191c54 commit b0e0196

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/services/forest_liana/scope_manager.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ def self.apply_scopes_on_records(records, forest_user, collection_name, timezone
1313
end
1414

1515
def self.append_scope_for_user(existing_filter, user, collection_name)
16+
existing_filter = existing_filter.to_json if existing_filter.is_a?(ActionController::Parameters)
1617
scope_filter = get_scope_for_user(user, collection_name, as_string: true)
1718
filters = [existing_filter, scope_filter].compact
1819

0 commit comments

Comments
 (0)