diff options
author | Nick Thomas <nick@gitlab.com> | 2019-01-24 16:23:57 +0000 |
---|---|---|
committer | Nick Thomas <nick@gitlab.com> | 2019-03-05 15:00:32 +0000 |
commit | 21779d00186d75349165d6c07dbe04aace68017c (patch) | |
tree | 25aaf112b51d6f5360a3e97db6f31f98a642660e /app/policies | |
parent | 42d3117f9c3371e07e8b0aafab6f504e87251c2a (diff) | |
download | gitlab-ce-21779d00186d75349165d6c07dbe04aace68017c.tar.gz |
Add metadata about the GitLab server to GraphQL
Diffstat (limited to 'app/policies')
-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 |