From b19f61edcbdb44b1454db29cbcf8d16ee9834fa4 Mon Sep 17 00:00:00 2001 From: huang Date: Tue, 19 May 2015 14:02:14 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=81=E6=9C=89=E9=A1=B9=E7=9B=AE=E9=9D=9E?= =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E6=88=90=E5=91=98=E4=B8=8D=E8=83=BD=E9=80=9A?= =?UTF-8?q?=E8=BF=87url=E8=AE=BF=E9=97=AE=E5=85=B3=E6=B3=A8=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/controllers/projects_controller.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/controllers/projects_controller.rb b/app/controllers/projects_controller.rb index 96807d2dc..041fa8529 100644 --- a/app/controllers/projects_controller.rb +++ b/app/controllers/projects_controller.rb @@ -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