[Zope-CMF] ActionsTool limitations

Florent Guillaume fg@nuxeo.com
Fri, 19 Jul 2002 14:15:01 +0000 (UTC)


[I forgot to copy the list]

In article <3D357E66.3010105@zope.com> shane writes:
> alan runyan wrote:
> > we need to have categories divorced from 'what context we are checking the
> > permission against'.  so one possible ugly hack is to have a
> > permission_context which would be one of 'folder,object,portal'.  this would
> > need to be on each action.  this way we could say, 'my category uses object
> > to determines its permission settings' or uses folder context to determine
> > its permission settings.
> 
> That sounds like a pretty reasonable change, actually.  Note that you 
> wouldn't quite be saying "my category uses object to determine its 
> permission settings", you would be saying "this action affects the 
> object, so check permissions in the context of the object."

How about a low-tech change for 1.3: all categories that
startswith('object') or 'workflow' or 'local' are in the context of the
object, and those with 'portal' in that of the portal, otherwise in that
of the folder.

If it's ok I'll checkin the change.

Florent

-- 
Florent Guillaume, Nuxeo (Paris, France)
+33 1 40 33 79 87  http://nuxeo.com  mailto:fg@nuxeo.com