NIHVIVO-2855 If editing the root user account, don't allow an ExternalAuthID, or the flag of ExternalAuthOnly.
This commit is contained in:
parent
ca844e91a2
commit
7da535e70a
2 changed files with 6 additions and 2 deletions
|
@ -237,6 +237,7 @@ public class UserAccountsEditPage extends UserAccountsPage {
|
||||||
|
|
||||||
if (!isRootUser()) {
|
if (!isRootUser()) {
|
||||||
body.put("roles", buildListOfSelectableRoles());
|
body.put("roles", buildListOfSelectableRoles());
|
||||||
|
body.put("externalAuthPermitted", Boolean.TRUE);
|
||||||
}
|
}
|
||||||
|
|
||||||
body.put("profileTypes", buildProfileTypesList());
|
body.put("profileTypes", buildProfileTypesList());
|
||||||
|
|
|
@ -62,9 +62,12 @@
|
||||||
<label for="last-name">Last name<span class="requiredHint"> *</span></label>
|
<label for="last-name">Last name<span class="requiredHint"> *</span></label>
|
||||||
<input type="text" name="lastName" value="${lastName}" id="last-name" role="input" />
|
<input type="text" name="lastName" value="${lastName}" id="last-name" role="input" />
|
||||||
|
|
||||||
<#include "userAccounts-associateProfilePanel.ftl">
|
<#if externalAuthPermitted??>
|
||||||
|
<#include "userAccounts-associateProfilePanel.ftl">
|
||||||
|
|
||||||
|
<p><input id="externalAuthChkBox" type="checkbox" name="externalAuthOnly" <#if externalAuthOnly?? >checked</#if> />Externally Authenticated Only</p>
|
||||||
|
</#if>
|
||||||
|
|
||||||
<p><input id="externalAuthChkBox" type="checkbox" name="externalAuthOnly" <#if externalAuthOnly?? >checked</#if> />Externally Authenticated Only</p>
|
|
||||||
<#if roles?has_content>
|
<#if roles?has_content>
|
||||||
<p>Roles<span class="requiredHint"> *</span></p>
|
<p>Roles<span class="requiredHint"> *</span></p>
|
||||||
<#list roles as role>
|
<#list roles as role>
|
||||||
|
|
Loading…
Add table
Reference in a new issue