Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2019-03-05 19:28:47 +0300
committerDouwe Maan <douwe@gitlab.com>2019-03-05 19:28:47 +0300
commitb3bd85643029f90269338ae6f37f2005563f77ff (patch)
tree50e35a137e5f6ba5be472d281364e2fdbd0f3a0a /app/policies
parent2d99b0a0d6173dabab130117a23f2cb047a7b90a (diff)
parent01b1076bd869a5bbcbaf6df55e825cc39f705e2a (diff)
Merge branch '56809-graphql-version-api' into 'master'
Add metadata about the GitLab server to GraphQL See merge request gitlab-org/gitlab-ce!24636
Diffstat (limited to 'app/policies')
-rw-r--r--app/policies/global_policy.rb4
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