i think you can achieve it (in controller using grid) with editable = auth.has_membership('Admin')
e.g. def booking(): has_membership=auth.has_membership('Admin') grid=SQLFORM.grid(db.booking, editable=has_membership) return locals() best regards On Tuesday, May 7, 2013 3:16:11 PM UTC+7, José Manuel López wrote: > > Hi, > I've a " form = SQLFORM.grid " that let the user edit the rows. > In the edit form I want that one of the field populated only with > "Admins". Now I have this field populated with all the db.auth_user and is > huge and very hard to find the correct user. > How can I do it?, I'm thinking in something like: > *db.Hotel.chainManager **=IS_IN_DB( ¿¿??? )* .... how to express only > users with Admin membership?. > > Thank you. > -- --- 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/groups/opt_out.