Skip to content

Commit a611271

Browse files
fix: support permissions infos with ruby < 2.7 (#486)
1 parent a5e2e21 commit a611271

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

app/services/forest_liana/permissions_checker.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ def stat_with_parameters_allowed?
177177
return false unless pool_permissions
178178

179179
# NOTICE: equivalent to Object.values in js & removes nil values
180-
array_permission_infos = @query_request_info.values.filter_map{ |x| x unless x.nil? }
180+
array_permission_infos = @query_request_info.values.select{ |x| !x.nil? }
181181

182182
# NOTICE: Is there any pool_permissions containing the array_permission_infos
183183
return pool_permissions.any? {

0 commit comments

Comments
 (0)