diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 647cc1b6cc5beaf7f28230cf0c04293a40f79014..6a321b9f69ea09fe1cf951056b99a81fd9b596f5 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -10,7 +10,7 @@ class ApplicationController < ActionController::Base protected def set_current_user_collections - @user_collections = collection_repository.all current_user + @user_collections = collection_repository.all Collections::UserPrivateContext.new(current_user) end def configure_permitted_parameters diff --git a/app/models/collections/user_context.rb b/app/models/collections/user_context.rb index 23cfe8f02e3eb4361c44bf814f9742c999454a30..c9c3ea33745e0efaa7fe2f8428ddab63b1198773 100644 --- a/app/models/collections/user_context.rb +++ b/app/models/collections/user_context.rb @@ -6,8 +6,8 @@ module Collections end def from - sprintf "select expand(in('BelongsTo')) from %s)", @user.rid + sprintf "(select expand(in('BelongsTo')) from %s)", @user.rid end end -end \ No newline at end of file +end