NIHVIVO-2855 If editing the root user account, don't allow an ExternalAuthID, or the flag of ExternalAuthOnly.

This commit is contained in:
j2blake 2012-03-06 21:59:48 +00:00
parent ca844e91a2
commit 7da535e70a
2 changed files with 6 additions and 2 deletions

View file

@ -237,6 +237,7 @@ public class UserAccountsEditPage extends UserAccountsPage {
if (!isRootUser()) {
body.put("roles", buildListOfSelectableRoles());
body.put("externalAuthPermitted", Boolean.TRUE);
}
body.put("profileTypes", buildProfileTypesList());

View file

@ -62,9 +62,12 @@
<label for="last-name">Last name<span class="requiredHint"> *</span></label>
<input type="text" name="lastName" value="${lastName}" id="last-name" role="input" />
<#if externalAuthPermitted??>
<#include "userAccounts-associateProfilePanel.ftl">
<p><input id="externalAuthChkBox" type="checkbox" name="externalAuthOnly" <#if externalAuthOnly?? >checked</#if> />Externally Authenticated Only</p>
</#if>
<#if roles?has_content>
<p>Roles<span class="requiredHint"> *</span></p>
<#list roles as role>