Fixes test broken by r3176 (#4439).

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3184 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Jean-Philippe Lang 2009-12-18 14:15:26 +00:00
parent 8e3def7129
commit 0e4525d76c
1 changed files with 2 additions and 1 deletions

View File

@ -62,7 +62,8 @@ class UsersController < ApplicationController
@events_by_day = events.group_by(&:event_date)
if @user != User.current && !User.current.admin? && @memberships.empty? && events.empty?
render_404 and return
render_404
return
end
render :layout => 'base'