diff --git a/app/controllers/glossary_categories_controller.rb b/app/controllers/glossary_categories_controller.rb index d4753dc..02eb7f5 100644 --- a/app/controllers/glossary_categories_controller.rb +++ b/app/controllers/glossary_categories_controller.rb @@ -1,8 +1,7 @@ class GlossaryCategoriesController < ApplicationController - before_action :authorize before_action :find_category_from_id, only: [:show, :edit, :update, :destroy] - before_action :find_project_from_id + before_action :find_project_from_id, :authorize def index @categories = GlossaryCategory.where(project_id: @project.id)