#13291 Added User management validation based on ACL permission in the User notifications view
This commit is contained in:
parent
56c09561f1
commit
8d0898ec1e
|
@ -79,30 +79,49 @@ if (is_metaconsole()) {
|
||||||
} else {
|
} else {
|
||||||
$urls['main'] = 'index.php?sec=gusuarios&sec2=godmode/users/user_list';
|
$urls['main'] = 'index.php?sec=gusuarios&sec2=godmode/users/user_list';
|
||||||
$urls['notifications'] = 'index.php?sec=workspace&sec2=operation/users/user_edit_notifications';
|
$urls['notifications'] = 'index.php?sec=workspace&sec2=operation/users/user_edit_notifications';
|
||||||
$buttons = [
|
$buttons = [];
|
||||||
'main' => [
|
|
||||||
'active' => $_GET['sec2'] === 'godmode/users/user_list&tab=user&pure=0',
|
if ((bool) check_acl($config['id_user'], 0, 'PM') === true) {
|
||||||
'text' => "<a href='{$urls['main']}'>".html_print_image(
|
$buttons = [
|
||||||
'images/user.svg',
|
'main' => [
|
||||||
true,
|
'active' => $_GET['sec2'] === 'godmode/users/user_list&tab=user&pure=0',
|
||||||
[
|
'text' => "<a href='{$urls['main']}'>".html_print_image(
|
||||||
'title' => __('User management'),
|
'images/user.svg',
|
||||||
'class' => 'main_menu_icon invert_filter',
|
true,
|
||||||
]
|
[
|
||||||
).'</a>',
|
'title' => __('User management'),
|
||||||
],
|
'class' => 'main_menu_icon invert_filter',
|
||||||
'notifications' => [
|
]
|
||||||
'active' => $_GET['sec2'] === 'operation/users/user_edit_notifications',
|
).'</a>',
|
||||||
'text' => "<a href='{$urls['notifications']}'>".html_print_image(
|
],
|
||||||
'images/alert@svg.svg',
|
'notifications' => [
|
||||||
true,
|
'active' => $_GET['sec2'] === 'operation/users/user_edit_notifications',
|
||||||
[
|
'text' => "<a href='{$urls['notifications']}'>".html_print_image(
|
||||||
'title' => __('User notifications'),
|
'images/alert@svg.svg',
|
||||||
'class' => 'main_menu_icon invert_filter',
|
true,
|
||||||
]
|
[
|
||||||
).'</a>',
|
'title' => __('User notifications'),
|
||||||
],
|
'class' => 'main_menu_icon invert_filter',
|
||||||
];
|
]
|
||||||
|
).'</a>',
|
||||||
|
],
|
||||||
|
];
|
||||||
|
} else {
|
||||||
|
$buttons = [
|
||||||
|
'notifications' => [
|
||||||
|
'active' => $_GET['sec2'] === 'operation/users/user_edit_notifications',
|
||||||
|
'text' => "<a href='{$urls['notifications']}'>".html_print_image(
|
||||||
|
'images/alert@svg.svg',
|
||||||
|
true,
|
||||||
|
[
|
||||||
|
'title' => __('User notifications'),
|
||||||
|
'class' => 'main_menu_icon invert_filter',
|
||||||
|
]
|
||||||
|
).'</a>',
|
||||||
|
],
|
||||||
|
];
|
||||||
|
}
|
||||||
|
|
||||||
$tab_name = 'User Management';
|
$tab_name = 'User Management';
|
||||||
|
|
||||||
$helpers = '';
|
$helpers = '';
|
||||||
|
|
Loading…
Reference in New Issue