diff options
author | Nick Thomas <nick@gitlab.com> | 2019-01-24 19:23:57 +0300 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-03-05 18:00:32 +0300 |
commit | 21779d00186d75349165d6c07dbe04aace68017c (patch) | |
tree | 25aaf112b51d6f5360a3e97db6f31f98a642660e /app/policies/global_policy.rb | |
parent | 42d3117f9c3371e07e8b0aafab6f504e87251c2a (diff) |
Add metadata about the GitLab server to GraphQL
Diffstat (limited to 'app/policies/global_policy.rb')
-rw-r--r-- | app/policies/global_policy.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/policies/global_policy.rb b/app/policies/global_policy.rb index 16c58730878..d412a591fdc 100644 --- a/app/policies/global_policy.rb +++ b/app/policies/global_policy.rb @@ -68,6 +68,10 @@ class GlobalPolicy < BasePolicy enable :read_users_list end + rule { ~anonymous }.policy do + enable :read_instance_metadata + end + rule { admin }.policy do enable :read_custom_attribute enable :update_custom_attribute |