diff options
author | http://jneen.net/ <jneen@jneen.net> | 2017-02-28 15:24:04 -0800 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2017-03-09 11:49:53 -0800 |
commit | f7a111e97656a441e1c78e9ed81d4212f46dfb23 (patch) | |
tree | 412e5539b895104cf2e53209fda5a6103d50d970 /app/policies | |
parent | bb0cba920ae5ce46ecc80907c445ddc85f3b4ed1 (diff) | |
download | gitlab-ce-f7a111e97656a441e1c78e9ed81d4212f46dfb23.tar.gz |
use policies to protect sending email
Diffstat (limited to 'app/policies')
-rw-r--r-- | app/policies/global_policy.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/policies/global_policy.rb b/app/policies/global_policy.rb index e1a527b95bf..cb72c2b4590 100644 --- a/app/policies/global_policy.rb +++ b/app/policies/global_policy.rb @@ -9,6 +9,7 @@ class GlobalPolicy < BasePolicy can! :log_in unless @user.access_locked? can! :access_api can! :access_git + can! :receive_notifications end end end |