Skip to content

Commit ff2e1b5

Browse files
authored
fix: allow charts with dynamic query using record id (#628)
1 parent 4672bb1 commit ff2e1b5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/forest_liana/ability/permission.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ def is_chart_authorized?(user, parameters)
5151
parameters.delete('action')
5252
parameters.delete('collection')
5353
parameters.delete('contextVariables')
54-
54+
parameters.delete('record_id')
5555

5656
hash_request = "#{parameters['type']}:#{Digest::SHA1.hexdigest(parameters.deep_sort.to_s)}"
5757
allowed = get_chart_data(user['rendering_id']).to_s.include? hash_request

0 commit comments

Comments
 (0)