Commit b81e7c52 authored by Heinrich Lee Yu's avatar Heinrich Lee Yu

Enable `:read_list` when `:read_group` is enabled

parent 99218353
...@@ -54,6 +54,7 @@ class GroupPolicy < BasePolicy ...@@ -54,6 +54,7 @@ class GroupPolicy < BasePolicy
rule { has_projects }.policy do rule { has_projects }.policy do
enable :read_group enable :read_group
enable :read_list
enable :read_label enable :read_label
end 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 ...@@ -83,7 +83,7 @@ describe GroupPolicy do
end end
it do it do
expect_allowed(:read_group, :read_label) expect_allowed(:read_group, :read_list, :read_label)
end end
context 'in subgroups', :nested_groups do context 'in subgroups', :nested_groups do
...@@ -91,7 +91,7 @@ describe GroupPolicy do ...@@ -91,7 +91,7 @@ describe GroupPolicy do
let(:project) { create(:project, namespace: subgroup) } let(:project) { create(:project, namespace: subgroup) }
it do it do
expect_allowed(:read_group, :read_label) expect_allowed(:read_group, :read_list, :read_label)
end end
end 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