its in tg2

i am waiting to put this into a template so how would i go about using
has_permission within there considering its and import from
repoze.what.predicates

On Nov 22, 5:05 pm, Christoph Zwerschke <[email protected]> wrote:
> adam schrieb:
>
> > i have an index page and i want to show some information if the user
> > logged in has full permissions. I am try
>
> > <div py:if="request.identity.permissions =='full' ">dsfdsfdsf</div>
>
> > and getting nothing, why?
>
> TG1 or TG2? I think permissions is a set.
>
> I.e. you have to write 'full' in identity.permissions or use
> has_permission('full').
>
> -- Christoph

--

You received this message because you are subscribed to the Google Groups 
"TurboGears" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/turbogears?hl=.


Reply via email to