aboutsummaryrefslogtreecommitdiffstats
path: root/app/controllers/application_controller.rb
diff options
context:
space:
mode:
authorrhenium <rhenium@rhe.jp>2014-06-28 16:21:59 +0900
committerrhenium <rhenium@rhe.jp>2014-06-28 16:21:59 +0900
commite57d1c09aec2e21069e8d6250ff40360bcded315 (patch)
tree67028a5b13e0f6cefbb81259c64c15aa10c1ec81 /app/controllers/application_controller.rb
parent4b848d92557fca967301557aec278e790dc44645 (diff)
downloadaclog-e57d1c09aec2e21069e8d6250ff40360bcded315.tar.gz
db: reorganize accounts (remove private, rename notification to notification_enabled, add index)
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r--app/controllers/application_controller.rb4
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)