'role' is the third argument of the function, so if you're only going to submit one argument, you have to name it:
auth.has_membership(role='reg') Your version is interpreting 'reg' as the group_id, which is the first argument. Anthony On Sunday, October 2, 2011 11:26:40 AM UTC-4, Web2Py Freak wrote: > > i have a role called "reg" > > i tryed : > {{ if auth.has_membership('reg') > > content for reg ..... > > {{pass}} > > but it didnt work ????