Skip to content
Snippets Groups Projects
Commit a24eabb1 authored by Małgorzata Ksionek's avatar Małgorzata Ksionek
Browse files

Resolve conflicts in group policy

parent ad2f711a
No related branches found
No related tags found
No related merge requests found
Loading
Loading
@@ -53,7 +53,6 @@ class GroupPolicy < BasePolicy
rule { admin }.enable :read_group
 
rule { has_projects }.policy do
enable :read_group
enable :read_list
enable :read_label
end
Loading
Loading
Loading
Loading
@@ -114,13 +114,13 @@ describe GroupPolicy do
project.add_developer(current_user)
end
 
it { expect_allowed(:read_label) }
it { expect_allowed(:read_label, :read_list) }
 
context 'in subgroups', :nested_groups do
let(:subgroup) { create(:group, :private, parent: group) }
let(:project) { create(:project, namespace: subgroup) }
 
it { expect_allowed(:read_label) }
it { expect_allowed(:read_label, :read_list) }
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