-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi Robert,

Robert Boyd wrote:
> I'm using NuxUserGroups 0.10.1 along with LDAPUserGroupsFolder in a
> non-CPS CMF site. I have noticed that local roles given to users or
> groups do not disappear from an object after that user or group is
> deleted from the user folder. This occurs even when using a plain
> UserFolder with Groups (without LDAP user folder). For example, if I
> give 'fred' and group 'Editors' local roles on a document, then delete
> 'fred' and 'Editors' from the user folder, when I inspect localroles for
> my document, it still shows that user/group as having a local role. A
> standard Zope user folder takes care of deleting all references to local
> roles of a deleted user, but I'm not sure where in the code that
> happens. 

I don't think this is the default UserFolder behavior to delete *all*
local roles a given user had when deleting it from the UF.

I checked the code from Zope-2.8.3 :

lib/python/AccessControl/User.py

   def _doDelUsers(self, names):
        for name in names:
            del self.data[name]

It clearly just removes the user from the UF and that's it.

Can you double check this on a regular UF please ?


        J.
- --
Julien Anguenot | Nuxeo R&D (Paris, France)
CPS Platform : http://www.cps-project.org
Zope3 / ECM   : http://www.z3lab.org
mail: anguenot at nuxeo.com; tel: +33 (0) 6 72 57 57 66
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFDX1neGhoG8MxZ/pIRAiJmAJ9SJNMIAPqTnQm8ZKrxOvNlbKAmsgCdE06Y
Y8FGI9YT0HtD63JZoV6d14s=
=eilQ
-----END PGP SIGNATURE-----
_______________________________________________
cps-users mailing list
[email protected]
http://lists.nuxeo.com/mailman/listinfo/cps-users

Reply via email to