修改is_public

This commit is contained in:
sylor_huang@126.com 2020-04-06 14:08:47 +08:00
parent 5485883fb6
commit f27361b2bf
1 changed files with 1 additions and 1 deletions

View File

@ -389,7 +389,7 @@ class IssuesController < ApplicationController
end
def check_issue_permission
unless !@project.public && (@project.member?(current_user) || current_user.admin? || (@project.user_id == current_user.id))
unless !@project.is_public && (@project.member?(current_user) || current_user.admin? || (@project.user_id == current_user.id))
normal_status(-1, "您没有权限")
end
end