]> git.openstreetmap.org Git - rails.git/commitdiff
Force a login to see your friends' changesets
authorTom Hughes <tom@compton.nu>
Fri, 16 Dec 2011 08:27:57 +0000 (08:27 +0000)
committerTom Hughes <tom@compton.nu>
Fri, 16 Dec 2011 08:27:57 +0000 (08:27 +0000)
app/controllers/changeset_controller.rb

index 0c13d3892c3a930c82d444e712b533986be095e8..7dd7006fe67bb71e4e605c5228712ae0d0a25260 100644 (file)
@@ -271,8 +271,7 @@ class ChangesetController < ApplicationController
         if @user
           changesets = changesets.where(:user_id => @user.friend_users.public)
         elsif request.format == :html
-          @title = t 'user.no_such_user.title'
-          render :template => 'user/no_such_user', :status => :not_found
+          require_user
           return
         end
       end