[phase-8]add authorize in controller
This commit is contained in:
parent
3f7c9b0b12
commit
219f876401
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user