mark index action as fully authorized when fetching records through accessible_by
This commit is contained in:
@@ -28,6 +28,7 @@ module CanCan
|
||||
self.resource_instance ||= load_resource_instance
|
||||
elsif load_collection?
|
||||
self.collection_instance ||= load_collection
|
||||
current_ability.fully_authorized! @params[:action], @params[:controller]
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
Reference in New Issue
Block a user