]> source.dussan.org Git - redmine.git/commitdiff
Fixes test broken by r3176 (#4439).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 18 Dec 2009 14:15:26 +0000 (14:15 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Fri, 18 Dec 2009 14:15:26 +0000 (14:15 +0000)
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@3184 e93f8b46-1217-0410-a6f0-8f06a7374b81

app/controllers/users_controller.rb

index 991afbfffba9a65b98c1226241419a12c31b7f51..b800a300281495584f72118af7bc0d023859507f 100644 (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'