Skip to content
Snippets Groups Projects
Commit 61c1509c authored by Nick Thomas's avatar Nick Thomas
Browse files

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
parents da8fce1f b81e7c52
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -54,6 +54,7 @@ class GroupPolicy < BasePolicy
 
rule { has_projects }.policy do
enable :read_group
enable :read_list
enable :read_label
end
 
Loading
Loading
---
title: Fix error when viewing group issue boards when user doesn't have explicit group
permissions
merge_request: 25524
author:
type: fixed
Loading
Loading
@@ -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
Loading
Loading
@@ -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
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment