Skip to content
Snippets Groups Projects
Commit 282b73d9 authored by Marcela Ribeiro de Oliveira's avatar Marcela Ribeiro de Oliveira
Browse files

authorize collection

parent be7b1f60
No related branches found
No related tags found
No related merge requests found
......@@ -8,7 +8,7 @@ class V1::CollectionsController < ApplicationController
include ::SubjectableController
include ::StageableController
before_action :authenticate_user!, only: [:create, :update, :destroy]
before_action :authenticate_user!, except: [:create, :index, :show]
before_action :set_collection, only: [:show, :update, :destroy, :add_object, :delete_object]
before_action :set_new_collection, only: :index
before_action :authorize!, except: [:create, :tagging, :untagging, :subjecting, :unsubjecting, :add_stages, :remove_stages]
......
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