[phase-8]add authorize in controller

This commit is contained in:
Toru Takahashi 2018-05-22 03:34:23 +09:00 committed by TAKAHASHI,Toru
parent 3f7c9b0b12
commit 219f876401
2 changed files with 2 additions and 0 deletions

View File

@ -1,5 +1,6 @@
class GlossaryCategoriesController < ApplicationController
before_action :authorize
before_action :find_category_from_id, only: [:show, :edit, :update, :destroy]
before_action :find_project_from_id

View File

@ -1,5 +1,6 @@
class GlossaryTermsController < ApplicationController
before_action :authorize
before_action :find_term_from_id, only: [:show, :edit, :update, :destroy]
before_action :find_project_from_id