[Zope-CMF] portal_catalog doesn't know about local roles ?
Jon Edwards
jon@pcgs.freeserve.co.uk
Mon, 11 Mar 2002 15:55:00 -0000
>> Shouldn't you be able to query the catalog for items you are allowed to
view
>> by being granted local roles ?
>
> You *can* query the catalog for such objects, but only if you
> had the local role *at the time the object was indexed*; the
> 'allowedRolesAndUsers' index stores both role names and user
> IDs of the users who had 'View' permission on the object when
> it was indexed.
So, would it be a good idea to add something to the folder_localrole_edit
script that calls reindexObject on all the items in the folder (and
sub-folders?) - or is there a better way to make sure that the info is
updated when you add/delete local roles?
Cheers, Jon (who's just digging into local roles/workgroups)