diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-15 06:10:54 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-02-15 06:10:54 +0300 |
commit | 5c599896773669c8671fd14f79b96d9cd50ccab8 (patch) | |
tree | 068ea44f71a34d897e47a0c834236d58ab028a67 /app/policies/group_policy.rb | |
parent | 03bea06527fd8cc8eb65af0b20b6019fc74721d9 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/policies/group_policy.rb')
-rw-r--r-- | app/policies/group_policy.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/policies/group_policy.rb b/app/policies/group_policy.rb index abb3616c58f..6cc65248914 100644 --- a/app/policies/group_policy.rb +++ b/app/policies/group_policy.rb @@ -329,6 +329,9 @@ class GroupPolicy < Namespaces::GroupProjectNamespaceSharedPolicy prevent :create_group_runners end + # Should be matched with ProjectPolicy#read_internal_note + rule { admin | reporter }.enable :read_internal_note + def access_level(for_any_session: false) return GroupMember::NO_ACCESS if @user.nil? return GroupMember::NO_ACCESS unless user_is_user? |