group|role|user: Add new tab `role/audit`

This commit is contained in:
Johannes Meyer 2021-03-18 17:03:12 +01:00
parent a4a658974d
commit fe7879c68b
3 changed files with 27 additions and 0 deletions

View File

@ -381,6 +381,15 @@ class GroupController extends AuthBackendController
'url' => 'role/list'
)
);
$tabs->add(
'role/audit',
[
'title' => $this->translate('Audit a user\'s privileges'),
'label' => $this->translate('Audit'),
'url' => 'role/audit'
]
);
}
if ($this->hasPermission('config/access-control/users')) {

View File

@ -145,6 +145,15 @@ class RoleController extends AuthBackendController
)
);
$tabs->add(
'role/audit',
[
'title' => $this->translate('Audit a user\'s privileges'),
'label' => $this->translate('Audit'),
'url' => 'role/audit'
]
);
if ($this->hasPermission('config/access-control/users')) {
$tabs->add(
'user/list',

View File

@ -338,6 +338,15 @@ class UserController extends AuthBackendController
'url' => 'role/list'
)
);
$tabs->add(
'role/audit',
[
'title' => $this->translate('Audit a user\'s privileges'),
'label' => $this->translate('Audit'),
'url' => 'role/audit'
]
);
}
$tabs->add(