修改权限
This commit is contained in:
parent
bdb4a0c084
commit
7ef196757d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue