]> source.dussan.org Git - archiva.git/commitdiff
LdapUserManagr can be not readOnly depending on configuration
authorOlivier Lamy <olamy@apache.org>
Mon, 21 Jan 2013 22:43:14 +0000 (22:43 +0000)
committerOlivier Lamy <olamy@apache.org>
Mon, 21 Jan 2013 22:43:14 +0000 (22:43 +0000)
git-svn-id: https://svn.apache.org/repos/asf/archiva/redback/redback-core/trunk@1436671 13f79535-47bb-0310-9956-ffa450edef68

redback-users/redback-users-providers/redback-users-ldap/src/main/java/org/apache/archiva/redback/users/ldap/LdapUserManager.java

index 3eb93fb9e1f0a1075cde8d5d2172d5ecd182a40d..0438919eb4e19e01c774d9fbabc721a0b87ca321 100644 (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 )