diff options
author | Markus Koller <markus-koller@gmx.ch> | 2017-09-28 19:49:42 +0300 |
---|---|---|
committer | Rémy Coutable <remy@rymai.me> | 2017-09-28 19:49:42 +0300 |
commit | e9eae3eb0dd25e4a34c9a4b6bcc7de312dde4489 (patch) | |
tree | d2402a99dd96927ae458f49cbd7de8ad043e297a /app/policies | |
parent | 93a33556e3e01a83c1af9c21e11ff433b624c40d (diff) |
Support custom attributes on users
Diffstat (limited to 'app/policies')
-rw-r--r-- | app/policies/global_policy.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/app/policies/global_policy.rb b/app/policies/global_policy.rb index 1be7bbe9953..8f7c01bb71f 100644 --- a/app/policies/global_policy.rb +++ b/app/policies/global_policy.rb @@ -47,4 +47,9 @@ class GlobalPolicy < BasePolicy rule { ~(anonymous & restricted_public_level) }.policy do enable :read_users_list end + + rule { admin }.policy do + enable :read_custom_attribute + enable :update_custom_attribute + end end |