プロジェクト

全般

プロフィール

« | » 

リビジョン 7fa90d34

高徹 高橋 徹 さんが約6年前に追加

[bugfix]for category controller, before calling authorize, should call find_project

差分を表示:

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)

他の形式にエクスポート: Unified diff