Added validation to reject things disallowed on the current user

This commit is contained in:
Evan Harris
2019-06-27 00:26:10 -05:00
parent a4c62f6860
commit 983d688cce
2 changed files with 16 additions and 0 deletions
@@ -66,6 +66,7 @@
<tr style="${command.currentUser ? 'display:none' : ''}">
<td><form:checkbox path="adminRole" id="admin" cssClass="checkbox"/></td>
<td><label for="admin"><fmt:message key="usersettings.admin"/></label></td>
<td class="warning"><form:errors path="adminRole"/></td>
</tr>
<tr>
<td><form:checkbox path="settingsRole" id="settings" cssClass="checkbox"/></td>
@@ -141,6 +142,7 @@
<tr>
<td><form:checkbox path="deleteUser" id="delete" cssClass="checkbox"/></td>
<td><label for="delete"><fmt:message key="usersettings.delete"/></label></td>
<td class="warning"><form:errors path="deleteUser"/></td>
</tr>
</table>
</c:if>