Commit 8ab41dc4 authored by Peter Leitzen's avatar Peter Leitzen

Merge base_guest_permissions in project policy context

Difference:

    >> a - b
    => [:read_release, :read_issue_link]
    >> b - a
    => []
parent 36e3537b
......@@ -14,16 +14,6 @@ RSpec.describe ProjectPolicy do
let_it_be(:admin) { create(:admin) }
let(:project) { create(:project, :public, namespace: owner.namespace) }
let(:base_guest_permissions) do
%i[
read_project read_board read_list read_wiki read_issue
read_project_for_iids read_issue_iid read_label
read_milestone read_snippet read_project_member read_note
create_project create_issue create_note upload_file create_merge_request_in
award_emoji read_release read_issue_link
]
end
let(:base_reporter_permissions) do
%i[
download_code fork_project create_snippet update_issue
......
......@@ -11,11 +11,11 @@ RSpec.shared_context 'ProjectPolicy context' do
let(:base_guest_permissions) do
%i[
read_project read_board read_list read_wiki read_issue
read_project_for_iids read_issue_iid read_label
read_milestone read_snippet read_project_member read_note
create_project create_issue create_note upload_file create_merge_request_in
award_emoji
award_emoji create_issue create_merge_request_in create_note
create_project read_board read_issue read_issue_iid read_issue_link
read_label read_list read_milestone read_note read_project
read_project_for_iids read_project_member read_release read_snippet
read_wiki upload_file
]
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