add_user.php
changeset 195 5ac118d6556c
parent 185 6baa2f78d3fe
--- a/add_user.php	Fri Sep 26 10:02:33 2008 +0000
+++ b/add_user.php	Mon Nov 10 21:07:14 2008 +0000
@@ -49,16 +49,18 @@
 	echo "        <td class=\"n\">" . _('Emailaddress') . "</td>\n"; 
 	echo "        <td class=\"n\"><input type=\"text\" class=\"input\" name=\"email\" value=\"\"></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) {
-		echo "          <option value=\"" . $template['id'] . "\">" . $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) {
+			echo "          <option value=\"" . $template['id'] . "\">" . $template['name'] . "</option>\n";
+		}
+		echo "         </select>\n";
+		echo "       </td>\n";
+		echo "       </tr>\n";
 	}
-	echo "         </select>\n";
-	echo "       </td>\n";
-	echo "       </tr>\n";
 	echo "       <tr>\n";
 	echo "        <td class=\"n\">" . _('Description') . "</td>\n"; 
 	echo "        <td class=\"n\"><textarea rows=\"4\" cols=\"30\" class=\"inputarea\" name=\"descr\"></textarea></td>\n";