On 12/12/2011 12:22 AM, Vincenzo Ampolo wrote:
Hi,
is there a way to use auth.requires_membership('admin') in templates? i tried :

     {{if auth.requires_membership('admin'):}}
<a href="{{=URL(c='admin')}}">Admin</a>
        {{pass}}


I mean it didn't work because of this :

because :

print auth.requires_membership('admin')
<function decorator at 0x38ddc08>

How can i use auth.* ACs in templates?

thanks.


--
Vincenzo Ampolo
http://vincenzo-ampolo.net
http://goshawknest.wordpress.com

Reply via email to