change token issue bug

This commit is contained in:
sylor_huang@126.com 2020-06-10 18:33:23 +08:00
parent 4b4bb0ab14
commit 6b29621485
2 changed files with 2 additions and 0 deletions

View File

@ -199,6 +199,8 @@ class IssuesController < ApplicationController
else
normal_status(-1, "更新失败")
end
elsif @issue.issue_type.to_s == "2" && params[:status_id].to_i == 5 && @issue.author_id !== current_user.try(:id)
normal_status(-1, "不允许修改为关闭状态")
else
issue_params = issue_send_params(params).except(:issue_classify, :author_id, :project_id)

BIN
dump.rdb

Binary file not shown.