diff options
Diffstat (limited to 'app/policies/user_policy.rb')
-rw-r--r-- | app/policies/user_policy.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/policies/user_policy.rb b/app/policies/user_policy.rb index ed5b01e52b4..1078eda38e7 100644 --- a/app/policies/user_policy.rb +++ b/app/policies/user_policy.rb @@ -37,6 +37,7 @@ class UserPolicy < BasePolicy rule { (private_profile | blocked_user | unconfirmed_user) & ~(user_is_self | admin) }.prevent :read_user_profile rule { user_is_self | admin }.enable :disable_two_factor rule { (user_is_self | admin) & ~blocked }.enable :create_user_personal_access_token + rule { (user_is_self | admin) & ~blocked }.enable :manage_user_personal_access_token rule { (user_is_self | admin) & ~blocked }.enable :get_user_associations_count end |