diff options
author | Kazuki Yamaguchi <k@rhe.jp> | 2015-08-30 01:28:40 +0900 |
---|---|---|
committer | Kazuki Yamaguchi <k@rhe.jp> | 2015-08-30 01:28:40 +0900 |
commit | faa49386bafa577fefb0bb281bcd3361ca4dbd30 (patch) | |
tree | 2695c1ead0f40935d4d50aefac56f0f30667d930 /app/controllers/application_controller.rb | |
parent | 2cac2634a59de2a9c4767c3ce0e817f94e5d83a1 (diff) | |
parent | f972504dd6c08dd474288ece8817e994beb926f8 (diff) | |
download | aclog-faa49386bafa577fefb0bb281bcd3361ca4dbd30.tar.gz |
Merge branch 'deny-showing'
Diffstat (limited to 'app/controllers/application_controller.rb')
-rw-r--r-- | app/controllers/application_controller.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index 68b638e..7f63d3f 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -42,6 +42,9 @@ class ApplicationController < ActionController::Base authorized?(object) || raise(Aclog::Exceptions::UserProtected, object) + object.is_a?(User) && object.opted_out? && + raise(Aclog::Exceptions::UserOptedOut, object) + object end |