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
2b6a87f6
Commit
2b6a87f6
authored
Dec 05, 2019
by
Tetiana Chupryna
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Simplify condition for group dashboard
parent
509ff29b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
6 deletions
+3
-6
ee/app/policies/ee/group_policy.rb
ee/app/policies/ee/group_policy.rb
+3
-6
No files found.
ee/app/policies/ee/group_policy.rb
View file @
2b6a87f6
...
...
@@ -25,8 +25,8 @@ module EE
::
Gitlab
::
CurrentSettings
.
lock_memberships_to_ldap?
end
condition
(
:security_dashboard_feature_
dis
abled
)
do
!
@subject
.
feature_available?
(
:security_dashboard
)
condition
(
:security_dashboard_feature_
en
abled
)
do
@subject
.
feature_available?
(
:security_dashboard
)
end
condition
(
:needs_new_sso_session
)
do
...
...
@@ -129,13 +129,10 @@ module EE
end
rule
{
developer
}.
policy
do
enable
:read_group_security_dashboard
enable
:admin_merge_request
end
rule
{
security_dashboard_feature_disabled
}.
policy
do
prevent
:read_group_security_dashboard
end
rule
{
security_dashboard_feature_enabled
&
developer
}.
enable
:read_group_security_dashboard
rule
{
needs_new_sso_session
}.
policy
do
prevent
:read_group
...
...
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