thanks! On Thursday, March 29, 2018 at 5:31:51 PM UTC-7, 黄祥 wrote: > > *pls try (not tested)* > has_membership_admin = 'Admin' in set(auth.user_groups.values() ) > db.table.field.readable = has_membership_admin > or > has_membership_admin = 'Admin' in set(auth.user_groups.values() ) > db.table.field.show_if = has_membership_admin > > best regards, > stifan >
-- 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. For more options, visit https://groups.google.com/d/optout.