Project

General

Profile

« Previous | Next » 

Revision 6ba1d116

Added by Marek Hulán over 7 years ago

Fixes #17256 - ignore order in Authorizer

View differences:

app/services/authorizer.rb
*values]).uniq
end
all_filters = all_filters.to_a # load all records, so #empty? does not call extra COUNT(*) query
all_filters = all_filters.reorder(nil).to_a # load all records, so #empty? does not call extra COUNT(*) query
Foreman::Logging.logger('permissions').debug do
all_filters.map do |f|
"filter with role_id: #{f.role_id} limited: #{f.limited?} search: #{f.search} taxonomy_search: #{f.taxonomy_search}"

Also available in: Unified diff