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