On Friday, September 27, 2019 at 12:55:47 PM UTC-7, Yoel Benitez Fonseca wrote: > > h! > > With `auth.accessible_query` u get the rows accessible to a user, how to > do the inverse ? > > I want to know the users who have a given permission >
Try auth.has_membership(group_id='agents') , per the examples at <URL:https://web2py.com/books/default/chapter/29/09/access-control#Combining-requirements> > > But that seems to be a boolean, so you need a list of users to cycle through. More after this pause ... /dps -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) - https://code.google.com/p/web2py/issues/list (Report Issues) --- 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 web2py+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/web2py/c6426fc4-6e6d-4dbb-b756-9e1d4c7730c8%40googlegroups.com.