LdapUserManagr can be not readOnly depending on configuration

git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1436671 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Olivier Lamy 2013-01-21 22:43:14 +00:00
parent 8e61f56f9d
commit a7c4bd1d97
1 changed files with 2 additions and 1 deletions

View File

@ -20,6 +20,7 @@ package org.apache.archiva.redback.users.ldap;
*/
import org.apache.archiva.redback.common.ldap.role.LdapRoleMapper;
import org.apache.archiva.redback.common.ldap.user.LdapUser;
import org.apache.archiva.redback.common.ldap.user.UserMapper;
import org.apache.archiva.redback.configuration.UserConfiguration;
@ -86,7 +87,7 @@ public class LdapUserManager
public boolean isReadOnly()
{
return true;
return !this.writableLdap;
}
public User addUser( User user )