edit_user.php
changeset 195 5ac118d6556c
parent 184 b60b88b1ae08
--- a/edit_user.php	Fri Sep 26 10:02:33 2008 +0000
+++ b/edit_user.php	Mon Nov 10 21:07:14 2008 +0000
@@ -114,16 +114,18 @@
 		echo "        <td class=\"n\">" . _('Emailaddress') . "</td>\n"; 
 		echo "        <td class=\"n\"><input type=\"text\" class=\"input\" name=\"email\" value=\"" . $user['email'] . "\"></td>\n";
 		echo "       </tr>\n";
-		echo "       <tr>\n";
-		echo "        <td class=\"n\">" . _('Permission template') . "</td>\n"; 
-		echo "        <td class=\"n\">\n";
-		echo "         <select name=\"perm_templ\">\n";
-		foreach (list_permission_templates() as $template) {
-			($template['id'] == $user['tpl_id']) ? $select = " SELECTED" : $select = "" ;
-			echo "          <option value=\"" . $template['id'] . "\"" . $select . ">" . $template['name'] . "</option>\n";
+		if (verify_permission('user_edit_templ_perm')) {
+			echo "       <tr>\n";
+			echo "        <td class=\"n\">" . _('Permission template') . "</td>\n"; 
+			echo "        <td class=\"n\">\n";
+			echo "         <select name=\"perm_templ\">\n";
+			foreach (list_permission_templates() as $template) {
+				($template['id'] == $user['tpl_id']) ? $select = " SELECTED" : $select = "" ;
+				echo "          <option value=\"" . $template['id'] . "\"" . $select . ">" . $template['name'] . "</option>\n";
+			}
+			echo "         </select>\n";
+			echo "       </td>\n";
 		}
-		echo "         </select>\n";
-		echo "       </td>\n";
 		echo "       </tr>\n";
 		echo "       <tr>\n";
 		echo "        <td class=\"n\">" . _('Description') . "</td>\n";