188
189
190
191
192
193
194
195
196
|
# File 'lib/jungle_path/api/helpers/auth_local_user.rb', line 188
def get_auth roles, no_cache=false
cache_key = "#{roles}_auth"
puts "get_auth cache_key: #{cache_key}."
auth = cache.get(cache_key)
if auth == nil or no_cache
auth = JunglePath::Authorization::Filter.new roles, Schema::Base.models, configatron.application.role_permissions, configatron.application.role_restrictions, configatron.application.role_schema_filters, configatron.schema.filters
end
auth
end
|