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:
parent
8e3def7129
commit
0e4525d76c
|
@ -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'
|
||||
|
||||
|
|
Loading…
Reference in New Issue