diff --git a/admin/manage_permission_templates.php b/admin/manage_permission_templates.php
index 9b4da1ce..de2d21b3 100644
--- a/admin/manage_permission_templates.php
+++ b/admin/manage_permission_templates.php
@@ -409,6 +409,10 @@ function toggleAdmin($admin) {
$id = hesk_GET('id');
+ if ($id == 1 || $id == 2) {
+ hesk_process_messages($hesklang['cannot_change_admin_staff'], $_SERVER['PHP_SELF']);
+ }
+
if ($admin) {
hesk_dbQuery("UPDATE `".hesk_dbEscape($hesk_settings['db_pfix'])."permission_templates` SET `heskprivileges` = 'ALL',
`categories` = 'ALL' WHERE `id` = ".intval($id));
diff --git a/language/en/text.php b/language/en/text.php
index 3fd1a78e..2fd0bca3 100644
--- a/language/en/text.php
+++ b/language/en/text.php
@@ -90,11 +90,12 @@ $hesklang['you_must_select_a_category'] = 'You must select at least one category
$hesklang['you_must_select_a_feature'] = 'You must select at least one feature.';
$hesklang['permission_template_error'] = 'The permission template could not be completed due to the following error(s): %s'; // %s: error list
$hesklang['template_created'] = 'Permission template successfully created!';
-$hesklang['cannot_delete_admin_or_staff'] = 'The Administrator and Staff permission groups cannot be deleted!';
+$hesklang['cannot_delete_admin_or_staff'] = 'The Administrator and Staff permission groups cannot be deleted!';
$hesklang['no_templates_were_deleted'] = 'No templates were deleted!';
$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!';
// 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 (:)