Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6cff9117
Commit
6cff9117
authored
Sep 05, 2020
by
Peter Leitzen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Merge public_permissions in project policy context
Difference: >> a - b => [] >> b - a => []
parent
8951db44
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
11 deletions
+3
-11
spec/policies/project_policy_spec.rb
spec/policies/project_policy_spec.rb
+0
-8
spec/support/shared_contexts/policies/project_policy_shared_context.rb
...shared_contexts/policies/project_policy_shared_context.rb
+3
-3
No files found.
spec/policies/project_policy_spec.rb
View file @
6cff9117
...
...
@@ -14,14 +14,6 @@ RSpec.describe ProjectPolicy do
let_it_be
(
:admin
)
{
create
(
:admin
)
}
let
(
:project
)
{
create
(
:project
,
:public
,
namespace:
owner
.
namespace
)
}
let
(
:public_permissions
)
do
%i[
download_code fork_project read_commit_status read_pipeline
read_container_image build_download_code build_read_container_image
download_wiki_code read_release
]
end
let
(
:owner_permissions
)
do
%i[
change_namespace change_visibility_level rename_project remove_project
...
...
spec/support/shared_contexts/policies/project_policy_shared_context.rb
View file @
6cff9117
...
...
@@ -60,9 +60,9 @@ RSpec.shared_context 'ProjectPolicy context' do
let
(
:public_permissions
)
do
%i[
download_code fork_project read_commit_status read_pipelin
e
read_container_image build_download_code build_
read_container_image
download_wiki_cod
e read_release
build_download_code build_read_container_image download_cod
e
download_wiki_code fork_project read_commit_status
read_container_image
read_pipelin
e read_release
]
end
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment