Update user_edit.php

This commit is contained in:
FusionPBX 2019-01-29 15:45:38 -07:00 committed by GitHub
parent e6883cdc68
commit d426113ec4
1 changed files with 53 additions and 55 deletions

View File

@ -772,9 +772,9 @@
echo " </tr>";
}
if ((permission_exists("user_add") && $action == 'add') || (permission_exists("user_edit") && $action == 'edit')) {
if (permission_exists("user_groups")) {
echo " <tr>";
echo " <td class='vncellreq' valign='top'>".$text['label-group'.(($action == 'edit') ? 's' : null)]."</td>";
echo " <td class='vncellreq' valign='top'>".$text['label-groups']."</td>";
echo " <td class='vtable'>";
$sql = "select ";
@ -852,6 +852,7 @@
echo " </td>";
echo " </tr>";
}
if (permission_exists('user_domain')) {
echo "<tr>\n";
@ -912,10 +913,6 @@
echo $text['description-enabled']."\n";
echo "</td>\n";
echo "</tr>\n";
}
else {
echo "<input type='hidden' name='domain_uuid' value='".escape($domain_uuid)."'>";
}
echo " <tr>";
echo " <td colspan='2' align='right'>";
@ -925,6 +922,7 @@
echo " <input type='hidden' name='username_old' value=\"".escape($username)."\">";
}
}
echo " <input type='hidden' name='domain_uuid' value='".escape($domain_uuid)."'>";
echo " <br>";
echo " <input type='submit' class='btn' value='".$text['button-save']."'>";
echo " </td>";