Commit 5995ff97 authored by Nick Thomas's avatar Nick Thomas Committed by GitLab Release Tools Bot

Merge branch '58149-fix-read-list-board-policy' into 'master'

Allow `:read_list` when `:read_group` is allowed

Closes #58149

See merge request gitlab-org/gitlab-ce!25524

(cherry picked from commit 61c1509c)

b81e7c52 Enable `:read_list` when `:read_group` is enabled
parent fbe2f04a
......@@ -54,6 +54,7 @@ class GroupPolicy < BasePolicy
rule { has_projects }.policy do
enable :read_group
enable :read_list
enable :read_label
end
......
---
title: Fix error when viewing group issue boards when user doesn't have explicit group
permissions
merge_request: 25524
author:
type: fixed
......@@ -83,7 +83,7 @@ describe GroupPolicy do
end
it do
expect_allowed(:read_group, :read_label)
expect_allowed(:read_group, :read_list, :read_label)
end
context 'in subgroups', :nested_groups do
......@@ -91,7 +91,7 @@ describe GroupPolicy do
let(:project) { create(:project, namespace: subgroup) }
it do
expect_allowed(:read_group, :read_label)
expect_allowed(:read_group, :read_list, :read_label)
end
end
end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment