diff --git a/admin/manage_permission_groups.php b/admin/manage_permission_groups.php index 3fd7eddc..1e397e29 100644 --- a/admin/manage_permission_groups.php +++ b/admin/manage_permission_groups.php @@ -185,11 +185,23 @@ function createEditModal($template, $features, $categories) + $checked = 'checked '; + } + if ((!hesk_SESSION('isadmin') && + !in_array($category['id'], $_SESSION['categories'])) || + $template['categories'] === 'ALL') { + $disabled = ' disabled'; + }?> + > - + value="" > + + > + @@ -201,19 +213,33 @@ function createEditModal($template, $features, $categories)
- + + '; + elseif (strpos($_SESSION['heskprivileges'], $feature) !== false): ?>
-
- +