diff options
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index ab1e701..644cdfa 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -32,9 +32,7 @@ class ApplicationController < ActionController::Base end def authorized_to_show_user_best?(user) - user.registered? && - (!user.private? || current_user == user) && - authorized_to_show_user?(user) + authorized_to_show_user?(user) && user.registered? end def authorize_to_show_user!(user) |