Changeset 2753 for pykota

Show
Ignore:
Timestamp:
02/23/06 15:44:28 (19 years ago)
Author:
jerome
Message:

Fixed removal of an user from an LDAP group.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • pykota/trunk/pykota/storages/ldapstorage.py

    r2752 r2753  
    10341034    def delUserFromGroup(self, user, group) :     
    10351035        """Removes an user from a group.""" 
    1036         if user.Name not in [u.Name for u in self.getGroupMembers(group)] : 
     1036        if user.Name in [u.Name for u in self.getGroupMembers(group)] : 
    10371037            result = self.doSearch("objectClass=pykotaGroup", None, base=group.ident, scope=ldap.SCOPE_BASE) 
    10381038            if result :