diff --git a/admin/manage_permission_templates.php b/admin/manage_permission_templates.php
index 3940dabf..a867fe27 100644
--- a/admin/manage_permission_templates.php
+++ b/admin/manage_permission_templates.php
@@ -46,8 +46,7 @@ hesk_dbConnect();
hesk_isLoggedIn();
/* Check permissions for this feature */
-//TODO Create and use new permission here
-hesk_checkPermission('can_man_cat');
+hesk_checkPermission('can_man_permission_tpl');
/* What should we do? */
if ( $action = hesk_REQUEST('a') )
diff --git a/inc/common.inc.php b/inc/common.inc.php
index 6b13588c..d7ac8df1 100644
--- a/inc/common.inc.php
+++ b/inc/common.inc.php
@@ -1943,5 +1943,6 @@ function hesk_getFeatureArray() {
'can_man_email_tpl', /* User can manage email templates */
'can_man_ticket_statuses', /* User can manage ticket statuses */
'can_set_manager', /* User can set category managers */
+ 'can_man_permission_tpl', /* User can manage permission templates */
);
}
\ No newline at end of file
diff --git a/inc/show_admin_nav.inc.php b/inc/show_admin_nav.inc.php
index 2780abd3..93752446 100644
--- a/inc/show_admin_nav.inc.php
+++ b/inc/show_admin_nav.inc.php
@@ -68,8 +68,21 @@ if ( hesk_check_kb_only(false) )
- >
-
+
+ '.$hesklang['menu_users'].'
+
+
+ ';
+ } elseif (hesk_checkPermission('can_man_users',0)) {
echo '- '.$hesklang['menu_users'].'
';
+ } elseif (hesk_checkPermission('can_man_permission_tpl', 0)) {
+ echo '-
+ '.$hesklang['permission_templates'].'
';
}
if (hesk_checkPermission('can_man_cat',0)) {
echo '- '.$hesklang['menu_cat'].'
';
diff --git a/language/en/text.php b/language/en/text.php
index 2fd0bca3..6abafd15 100644
--- a/language/en/text.php
+++ b/language/en/text.php
@@ -96,6 +96,8 @@ $hesklang['permission_template_deleted'] = 'Permission template deleted!';
$hesklang['permission_template_now_admin'] = 'Permission template is now designed as an admin template';
$hesklang['permission_template_no_longer_admin'] = 'Permission template is no longer designated as an admin template';
$hesklang['cannot_change_admin_staff'] = 'You cannot change admin/non-admin status for the Administrator and Staff templates!';
+$hesklang['permission_tpl_man'] = 'Manage permission templates'; // Menu link
+$hesklang['permission_templates'] = 'Permission Templates';
// ADDED OR MODIFIED IN Mods for HESK 2.2.1
$hesklang['popart_no_colon']='Top Knowledgebase Articles'; // same as $hesklang['popart'] but without a colon (:)