Edit User: Use CSS (instead) to hide Enabled field when editing own User account.

This commit is contained in:
Nate 2019-03-15 14:17:41 -06:00
parent b9be6da703
commit 8de06a9fbe
1 changed files with 13 additions and 15 deletions

View File

@ -952,8 +952,7 @@
echo " </tr>";
}
if ($user_uuid != $_SESSION['user_uuid']) {
echo "<tr>\n";
echo "<tr ".($user_uuid == $_SESSION['user_uuid'] ? "style='display: none;'" : null).">\n";
echo "<td class='vncell' valign='top' align='left' nowrap='nowrap'>\n";
echo " ".$text['label-enabled']."\n";
echo "</td>\n";
@ -966,7 +965,6 @@
echo $text['description-enabled']."\n";
echo "</td>\n";
echo "</tr>\n";
}
echo " <tr>";
echo " <td colspan='2' align='right' style='white-space: nowrap;'>";