Project

General

Profile

« Previous | Next » 

Revision 4f08c522

Added by Dominic Cleal about 9 years ago

fixes #5909 - return r/w resources from authorized scope

(cherry picked from commit 0d80512c3293895750ffda82489b719c38ec5612)

View differences:

app/services/authorizer.rb
return resource_class.scoped if all_filters.any?(&:unlimited?)
search_string = build_scoped_search_condition(all_filters.select(&:limited?))
resource_class.search_for(search_string)
resource_class.search_for(search_string).readonly(false)
end
def build_scoped_search_condition(filters)

Also available in: Unified diff