私有项目非项目成员不能通过url访问关注列表

This commit is contained in:
huang 2015-05-19 14:02:14 +08:00
parent 5cb9cc0903
commit b19f61edcb
1 changed files with 4 additions and 4 deletions

View File

@ -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