Force a login to see your friends' changesets

This commit is contained in:
Tom Hughes 2011-12-16 08:27:57 +00:00
parent 8dd6f9f52f
commit 9545ca4ff3

View 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