app/controllers/scrivito/workspaces_controller.rb in scrivito_sdk-0.66.0.rc1 vs app/controllers/scrivito/workspaces_controller.rb in scrivito_sdk-0.66.0.rc2

- old
+ new

@@ -4,12 +4,10 @@ around_action :authorize_current_workspace_read, only: :show around_action :authorize_current_workspace_write, only: [:update, :destroy, :rebase] around_action :authorize_current_workspace_publish, only: [:check, :publish] def index - @workspaces = Workspace.all.select do |workspace| - can_user_access_workspace?(:read, workspace) - end + @workspaces = Workspace.all.select(&method(:can_user_read_workspace?)) render :workspaces end def show end