Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
U
uw_cfg_common
Manage
Activity
Members
Labels
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
WCMS
uw_cfg_common
Commits
e365ce20
Commit
e365ce20
authored
4 years ago
by
Liam Morland
Browse files
Options
Downloads
Patches
Plain Diff
Revert "ISTWCMS-4632: Create permission 'administer role expire configuration'"
This reverts commit
b14310cd
.
parent
81930e1d
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/Access/UwNodeAccessCheck.php
+0
-5
0 additions, 5 deletions
src/Access/UwNodeAccessCheck.php
src/Routing/UwNodeAccessRouteSubscriber.php
+0
-2
0 additions, 2 deletions
src/Routing/UwNodeAccessRouteSubscriber.php
uw_cfg_common.permissions.yml
+0
-4
0 additions, 4 deletions
uw_cfg_common.permissions.yml
with
0 additions
and
11 deletions
src/Access/UwNodeAccessCheck.php
+
0
−
5
View file @
e365ce20
...
...
@@ -55,11 +55,6 @@ class UwNodeAccessCheck implements AccessInterface {
}
}
// Role Expire config: admin/config/system/role-expire.
if
(
$route_name
===
'role_expire.config'
)
{
return
$account
->
hasPermission
(
'administer role expire configuration'
)
?
AccessResult
::
allowed
()
:
AccessResult
::
forbidden
();
}
// Dashboard config: admin/config/dashboards/dashboardssettings.
if
(
$route_name
===
'dashboards.dashboards_settings_form'
)
{
return
$account
->
hasPermission
(
'access dashboard config'
)
?
AccessResult
::
allowed
()
:
AccessResult
::
forbidden
();
...
...
This diff is collapsed.
Click to expand it.
src/Routing/UwNodeAccessRouteSubscriber.php
+
0
−
2
View file @
e365ce20
...
...
@@ -24,8 +24,6 @@ class UwNodeAccessRouteSubscriber extends RouteSubscriberBase {
'entity.node.delete_form'
,
// Menu link edit pages.
'menu_ui.link_edit'
,
// Role Expire config: admin/config/system/role-expire.
'role_expire.config'
,
];
foreach
(
$access_route_names
as
$route_name
)
{
if
(
$route
=
$collection
->
get
(
$route_name
))
{
...
...
This diff is collapsed.
Click to expand it.
uw_cfg_common.permissions.yml
+
0
−
4
View file @
e365ce20
...
...
@@ -4,10 +4,6 @@
'
access
dashboard
config'
:
title
:
'
Access
dashboard
configuration'
description
:
'
Allows
access
to
admin/config/dashboards/dashboardssettings.'
'
administer
role
expire
configuration'
:
title
:
'
Administer
role
expire
configuration'
description
:
'
Allows
access
to
admin/config/system/role-expire.'
restrict access
:
true
'
access
manage
toolbar
item'
:
title
:
'
Access
"Manage"
toolbar
item'
description
:
'
Allows
access
to
the
toolbar
item
"Manage".
Without
this,
"People"
and
"Reports"
will
appear
under
"Workbench"
to
those
who
have
access.'
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment