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:
authorGitLab Bot <gitlab-bot@gitlab.com>2023-02-15 06:10:54 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2023-02-15 06:10:54 +0300
commit5c599896773669c8671fd14f79b96d9cd50ccab8 (patch)
tree068ea44f71a34d897e47a0c834236d58ab028a67 /app/policies/group_policy.rb
parent03bea06527fd8cc8eb65af0b20b6019fc74721d9 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/policies/group_policy.rb')
-rw-r--r--app/policies/group_policy.rb3
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?