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
4a01c684
Commit
4a01c684
authored
Apr 11, 2018
by
Bob Van Landuyt
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Adjust merge request & note policies for EE
parent
f5dff373
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
5 deletions
+4
-5
ee/app/policies/ee/project_policy.rb
ee/app/policies/ee/project_policy.rb
+2
-1
ee/app/policies/epic_policy.rb
ee/app/policies/epic_policy.rb
+1
-4
spec/policies/project_policy_spec.rb
spec/policies/project_policy_spec.rb
+1
-0
No files found.
ee/app/policies/ee/project_policy.rb
View file @
4a01c684
...
...
@@ -58,7 +58,8 @@ module EE
rule
{
license_block
}.
policy
do
prevent
:create_issue
prevent
:create_merge_request
prevent
:create_merge_request_in
prevent
:create_merge_request_from
prevent
:push_code
end
...
...
ee/app/policies/epic_policy.rb
View file @
4a01c684
...
...
@@ -10,8 +10,5 @@ class EpicPolicy < BasePolicy
enable
:create_note
end
rule
{
can?
(
:admin_epic
)
}.
policy
do
enable
:update_note
enable
:admin_note
end
rule
{
can?
(
:create_note
)
}.
enable
:award_emoji
end
spec/policies/project_policy_spec.rb
View file @
4a01c684
...
...
@@ -401,6 +401,7 @@ describe ProjectPolicy do
read_project_snippet read_project_member read_note read_cycle_analytics
read_pipeline read_build read_commit_status read_container_image
read_environment read_deployment read_merge_request read_pages
create_merge_request_in award_emoji
]
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