Force a login to see your friends' changesets
This commit is contained in:
parent
8dd6f9f52f
commit
9545ca4ff3
1 changed files with 1 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue