fix #527 : hide ldap user attributes
This commit is contained in:
parent
c662e3df72
commit
ea3f34ec19
3 changed files with 5 additions and 0 deletions
|
@ -69,6 +69,7 @@ public class AdminUserAction extends FessAdminAction {
|
|||
protected void setupHtmlData(final ActionRuntime runtime) {
|
||||
super.setupHtmlData(runtime);
|
||||
runtime.registerData("helpLink", systemHelper.getHelpLink(fessConfig.getOnlineHelpNameUser()));
|
||||
runtime.registerData("ldapAdminEnabled", fessConfig.isLdapAdminEnabled());
|
||||
}
|
||||
|
||||
// ===================================================================================
|
||||
|
|
|
@ -62,6 +62,7 @@
|
|||
<th class="col-xs-2"><la:message key="labels.user_mail" /></th>
|
||||
<td>${f:h(mail)}<la:hidden property="mail" /></td>
|
||||
</tr>
|
||||
<c:if test="${ldapAdminEnabled}">
|
||||
<tr>
|
||||
<th class="col-xs-2"><la:message key="labels.user_employeeNumber" /></th>
|
||||
<td>${f:h(employeeNumber)}<la:hidden property="employeeNumber" /></td>
|
||||
|
@ -194,6 +195,7 @@
|
|||
<th class="col-xs-2"><la:message key="labels.user_homeDirectory" /></th>
|
||||
<td>${f:h(homeDirectory)}<la:hidden property="homeDirectory" /></td>
|
||||
</tr>
|
||||
</c:if>
|
||||
<tr>
|
||||
<th><la:message key="labels.roles" /></th>
|
||||
<td><c:forEach var="rt" varStatus="s"
|
||||
|
|
|
@ -97,6 +97,7 @@
|
|||
<la:text property="mail" styleClass="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
<c:if test="${ldapAdminEnabled}">
|
||||
<div class="form-group">
|
||||
<label for="employeeNumber" class="col-sm-3 control-label"><la:message
|
||||
key="labels.user_employeeNumber" /></label>
|
||||
|
@ -361,6 +362,7 @@
|
|||
<la:text property="homeDirectory" styleClass="form-control" />
|
||||
</div>
|
||||
</div>
|
||||
</c:if>
|
||||
<div class="form-group">
|
||||
<label for="roles" class="col-sm-3 control-label"><la:message
|
||||
key="labels.roles" /></label>
|
||||
|
|
Loading…
Add table
Reference in a new issue