diff options
author | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-02 13:43:07 +0300 |
---|---|---|
committer | Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com> | 2014-06-02 13:43:07 +0300 |
commit | e9de569458b55b43a0d09dceef07c3c5d583af24 (patch) | |
tree | 62cd512f3a0bbb7a679ac910be7505657129e4a5 /app/controllers/users_controller.rb | |
parent | 72b295259ed8565e166a7f2a466ca33d183f6108 (diff) | |
download | gitlab-ce-e9de569458b55b43a0d09dceef07c3c5d583af24.tar.gz |
Fix tests for user page
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
Diffstat (limited to 'app/controllers/users_controller.rb')
-rw-r--r-- | app/controllers/users_controller.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/controllers/users_controller.rb b/app/controllers/users_controller.rb index 2d227ae2017..d42c2db9e5f 100644 --- a/app/controllers/users_controller.rb +++ b/app/controllers/users_controller.rb @@ -6,7 +6,7 @@ class UsersController < ApplicationController @user = User.find_by_username!(params[:username]) @projects = Project.personal(@user).accessible_to(current_user) - if !current_user && @projects.empty? + unless current_user || @user.public_profile? return authenticate_user! end |