修改权限

This commit is contained in:
sylor_huang@126.com 2020-04-06 14:05:16 +08:00
parent bdb4a0c084
commit 7ef196757d
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.is_private && (@project.member?(current_user) || current_user.admin? || (@project.user_id == current_user.id))
unless !@project.public? && (@project.member?(current_user) || current_user.admin? || (@project.user_id == current_user.id))
normal_status(-1, "您没有权限")
end
end