[Zope] NUXUserGroups Zope security
Florent Guillaume
fg@nuxeo.com
Mon, 22 Jul 2002 14:19:40 +0200
In article <E9E34A79-9D51-11D6-81FA-000393876536@bangor.ac.uk> you write:
> >> The script returns the same error when executed by a user with manager
> >> role and when the script has the manager proxy role.
> >>
> >> I'm stumped.
> >
> > Can you try to add a
> > security.declareObjectProtected(ManageUsers)
> > just after the
> > security = ClassSecurityInfo()
> > in the BasicGroup class ? (in UserFolderWithGroups.py)
> >
> > Tell me if it works for you.
>
> It doesn't make a different. I still get the same error.
>
> I've also tried adding the declareObjectProtected on the Group class and
> that didn't work either.
>
> Changing the security declaration for the getUsers method in class Group
> to security.declarePublic('getUsers') works as expected though.
Can you check the owner in the Owner tab of the script, verify that the
user still exists, and that he's a Manager.
Florent
--
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87 http://nuxeo.com mailto:fg@nuxeo.com