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
d5e7fc5a
Commit
d5e7fc5a
authored
Dec 09, 2019
by
Tetiana Chupryna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Make read_vulnerability base permission
parent
db697bdb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
ee/app/policies/ee/project_policy.rb
ee/app/policies/ee/project_policy.rb
+4
-5
No files found.
ee/app/policies/ee/project_policy.rb
View file @
d5e7fc5a
...
...
@@ -159,10 +159,10 @@ module EE
rule
{
can?
(
:read_build
)
&
can?
(
:download_code
)
}.
enable
:read_security_findings
rule
{
security_dashboard_enabled
&
can?
(
:developer_access
)
}.
enable
:read_
project_security_dashboard
rule
{
security_dashboard_enabled
&
can?
(
:developer_access
)
}.
enable
:read_
vulnerability
rule
{
can?
(
:read_
project_security_dashboard
)
}.
policy
do
enable
:read_
vulnerability
rule
{
can?
(
:read_
vulnerability
)
}.
policy
do
enable
:read_
project_security_dashboard
enable
:create_vulnerability
enable
:admin_vulnerability
end
...
...
@@ -210,10 +210,9 @@ module EE
enable
:read_environment
enable
:read_deployment
enable
:read_pages
enable
:read_project_security_dashboard
end
rule
{
auditor
&
can?
(
:read_project_security_dashboard
)
}.
policy
do
rule
{
auditor
&
security_dashboard_enabled
}.
policy
do
enable
:read_vulnerability
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