Skip to content

Commit

Permalink
Remove unnecessary call to find_collections
Browse files Browse the repository at this point in the history
The call to `find_collections_with_edit_access` overwrites the
`@user_collections` variable set by `find_collections`
  • Loading branch information
jcoyne committed Sep 12, 2016
1 parent 49cf16d commit f811241
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/controllers/concerns/sufia/my_controller_behavior.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ module MyControllerBehavior
before_action :authenticate_user!
before_action :enforce_show_permissions, only: :show
before_action :enforce_viewing_context_for_show_requests, only: :show
before_action :find_collections, only: :index
before_action :find_collections_with_edit_access, only: :index

layout 'sufia-dashboard'
Expand Down

0 comments on commit f811241

Please sign in to comment.