OK my brain is still failing me today:

What's the best way to return the details of all users who have a specific
role?

I have something like:

for row in db(db.auth_user).select():
        if auth.has_membership(user_id=row.id, role=('Super admin')):
              # do something

but can't help feeling there's a better way!

Reply via email to