私有项目非项目成员不能通过url访问关注列表
This commit is contained in:
parent
5cb9cc0903
commit
b19f61edcb
|
@ -676,11 +676,11 @@ class ProjectsController < ApplicationController
|
|||
true
|
||||
end
|
||||
|
||||
# added by huang
|
||||
|
||||
def watcherlist
|
||||
if @watched
|
||||
@users -= watched.watcher_users
|
||||
if !@project.is_public? && !User.current.member_of?(@project)
|
||||
render_403
|
||||
else
|
||||
@users -= watched.watcher_users if @watched
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Reference in New Issue