Skip to content
Snippets Groups Projects
Commit 2b8ec050 authored by Mateus Rambo Strey's avatar Mateus Rambo Strey
Browse files

add user context to collections index

parent 9b160a10
No related branches found
No related tags found
No related merge requests found
......@@ -6,7 +6,7 @@ class CollectionsController < ApplicationController
# GET /collections.json
def index
if user_signed_in?
@collections = collection_repository.all Collections::UserPublicContext.new(current_user)
@collections = collection_repository.all Collections::UserContext.new(current_user)
else
@collections = collection_repository.all
end
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment