From 173975d01100ccab019cd6d4bfb1e90ff3a601e5 Mon Sep 17 00:00:00 2001 From: Jasder <2053003901@@qq.com> Date: Fri, 3 Apr 2020 16:25:07 +0800 Subject: [PATCH] FIX change create issue premisstion --- app/controllers/issues_controller.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/issues_controller.rb b/app/controllers/issues_controller.rb index bca0c2c55..f225b1fbd 100644 --- a/app/controllers/issues_controller.rb +++ b/app/controllers/issues_controller.rb @@ -3,7 +3,7 @@ class IssuesController < ApplicationController before_action :find_project_with_id before_action :set_project_and_user before_action :check_project_public, only: [:index ,:show, :copy, :index_chosen, :close_issue] - before_action :check_issue_permission, except: [:index, :show, :index_chosen] + before_action :check_issue_permission, except: [:index, :show, :index_chosen, :create] before_action :set_issue, only: [:edit, :update, :destroy, :show, :copy, :close_issue, :lock_issue] before_action :get_branches, only: [:new, :edit]