fix #527 : hide ldap user attributes

This commit is contained in:
Shinsuke Sugaya 2016-06-06 06:41:24 +09:00
parent c662e3df72
commit ea3f34ec19
3 changed files with 5 additions and 0 deletions

View file

@ -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());
}
// ===================================================================================

View file

@ -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"

View file

@ -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>