リビジョン 7fa90d34
| app/controllers/glossary_categories_controller.rb | ||
|---|---|---|
|
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)
|
||
[bugfix]for category controller, before calling authorize, should call find_project