diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-13 09:07:16 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-01-13 09:07:16 +0000 |
commit | 3101940724e516c36eb67884bd4f944b63d20721 (patch) | |
tree | 01c434907c8344df72e4314bb8c8f60a0b97c0f3 /app/policies/group_policy.rb | |
parent | 7f376fe105b7930f961e4dc1ab5a09e1118de181 (diff) | |
download | gitlab-ce-3101940724e516c36eb67884bd4f944b63d20721.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/policies/group_policy.rb')
-rw-r--r-- | app/policies/group_policy.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/policies/group_policy.rb b/app/policies/group_policy.rb index 8eea995529c..b2325b7acac 100644 --- a/app/policies/group_policy.rb +++ b/app/policies/group_policy.rb @@ -126,6 +126,7 @@ class GroupPolicy < Namespaces::GroupProjectNamespaceSharedPolicy enable :read_group_member enable :read_custom_emoji enable :read_counts + enable :read_achievement end rule { ~public_group & ~has_access }.prevent :read_counts @@ -185,6 +186,7 @@ class GroupPolicy < Namespaces::GroupProjectNamespaceSharedPolicy enable :maintainer_access enable :read_upload enable :destroy_upload + enable :admin_achievement end rule { owner }.policy do |