fixed in trunk. Thanks for reporting this.

On Monday, 25 February 2013 13:23:52 UTC-6, Cliff Kachinske wrote:
>
> auth.has_membership returns true when passed a non_existent group role.
>
> This code snippet:
>
> q = db.auth_group.role.contains('fubar')
> print len(db(q).select())
>
> print auth.has_membership('fubar')
>
> Returns this in the console:
>
> 0
> True
>
>
>

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to