[Product-Developers] return transitions available for the authenticated user

2 Messages Forum Options Options
Embed this topic
Permalink
David Bain-5
[Product-Developers] return transitions available for the authenticated user
Reply Threaded More
Print post
Permalink
The following code gets all available transitions, however I would like to filter transitions based on what a user can actually do.

<tal:transitions define="transitions python:wtool.getTransitionsFor(context)"
          >


What would I need to make the above code return only the transitions that the authenticated user can do. Or perhaps it already does that and I'm doing something else wrong.

_______________________________________________
Product-Developers mailing list
Product-Developers@...
http://lists.plone.org/mailman/listinfo/product-developers
David Bain-5
[Product-Developers] Re: return transitions available for the authenticated user
Reply Threaded More
Print post
Permalink
never mind guard permissions were absent

On Mon, Jun 30, 2008 at 9:04 AM, David Bain <david.bain@...> wrote:
The following code gets all available transitions, however I would like to filter transitions based on what a user can actually do.

<tal:transitions define="transitions python:wtool.getTransitionsFor(context)"
          >


What would I need to make the above code return only the transitions that the authenticated user can do. Or perhaps it already does that and I'm doing something else wrong.


_______________________________________________
Product-Developers mailing list
Product-Developers@...
http://lists.plone.org/mailman/listinfo/product-developers