diff options
author | http://jneen.net/ <jneen@jneen.net> | 2017-03-01 00:19:52 +0300 |
---|---|---|
committer | http://jneen.net/ <jneen@jneen.net> | 2017-03-09 22:49:52 +0300 |
commit | 0ea04cc5bfcc125875a6e0f46702389f0e2e19c0 (patch) | |
tree | d5cb804a8ce4c5a28bd9cc40724fc96457c29e7f /app/policies | |
parent | d9cfed07cd1048328499ae06807368be29bdeb2c (diff) |
use the policy stack to protect logins
Diffstat (limited to 'app/policies')
-rw-r--r-- | app/policies/global_policy.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/policies/global_policy.rb b/app/policies/global_policy.rb index a1946584dd0..e1a527b95bf 100644 --- a/app/policies/global_policy.rb +++ b/app/policies/global_policy.rb @@ -6,7 +6,7 @@ class GlobalPolicy < BasePolicy can! :read_users_list unless @user.blocked? || @user.internal? - can! :log_in + can! :log_in unless @user.access_locked? can! :access_api can! :access_git end |