edit_user.php
changeset 116 cc09385a62aa
parent 110 455405c757e1
child 117 04cf478997f2
equal deleted inserted replaced
115:b1d7998a903e 116:cc09385a62aa
   146 		}
   146 		}
   147 		echo " Based on this template, this user has the following permissions:";
   147 		echo " Based on this template, this user has the following permissions:";
   148 		echo "     </p>\n";
   148 		echo "     </p>\n";
   149 		echo "     <ul>\n";
   149 		echo "     <ul>\n";
   150 		foreach (get_permissions_by_template_id($user['tpl_id']) as $item) {
   150 		foreach (get_permissions_by_template_id($user['tpl_id']) as $item) {
   151 			echo "      <li>" . $item['descr'] . " (" . $item['name'] . ")</li>\n";
   151 			echo "      <li>" . _($item['descr']) . " (" . $item['name'] . ")</li>\n";
   152 		}
   152 		}
   153 		echo "     </ul>\n";
   153 		echo "     </ul>\n";
   154 	}
   154 	}
   155 } else {
   155 } else {
   156 	error(ERR_PERM_EDIT_USER);
   156 	error(ERR_PERM_EDIT_USER);