A few more adjustments for the new password permissions.

This commit is contained in:
Mark Crane
2015-05-20 22:32:55 +00:00
parent 551aba5941
commit f6a4a5daaa
2 changed files with 4 additions and 2 deletions

View File

@@ -585,7 +585,9 @@ require_once "resources/require.php";
echo " <td class='vtable' nowrap='nowrap'>".$text['label-display_name']."</td>\n";
echo " <td class='vtable' nowrap='nowrap'>".$text['label-user_id']."</td>\n";
echo " <td class='vtable' nowrap='nowrap'>".$text['label-auth_id']."</td>\n";
echo " <td class='vtable' nowrap='nowrap'>".$text['label-password']."</td>\n";
if (permission_exists('device_line_password')) {
echo " <td class='vtable' nowrap='nowrap'>".$text['label-password']."</td>\n";
}
echo " <td class='vtable' nowrap='nowrap'>".$text['label-sip_port']."</td>\n";
echo " <td class='vtable' nowrap='nowrap'>".$text['label-sip_transport']."</td>\n";
echo " <td class='vtable' nowrap='nowrap'>".$text['label-register_expires']."</td>\n";

View File

@@ -915,7 +915,7 @@ if (count($_POST) > 0 && strlen($_POST["persistformvar"]) == 0) {
echo "</td>\n";
echo "</tr>\n";
if ($action == "update") {
if (permission_exists('extension_password' && $action == "update") {
echo "<tr>\n";
echo "<td class='vncellreq' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-password']."\n";