I think you need to make it with writable=False or readable=False, search
in the book.

You can do something like this at models level :

Field('fielname','fieltype',readable=lambda:
auth.requires_membership('Author'))

So if the lambda return False the field will not be readable in select or
in form.

Richard

On Wed, Apr 11, 2012 at 9:46 AM, BlueShadow <[email protected]> wrote:

> Hi I like to hide a couple links on my page if users are not logged in and
> in the group of authors.
> I tried the following
> in the html page:
> {{if auth.requires_membership('Author')==True: =A('new Article' ,
> _href=URL(r=request,f='newArticle'))}}
> but I only get syntax errors
>

Reply via email to