Thanks.. This is the way implemented it for those wondering: in the model (db.py): from gluon.fileutils import check_credentials
in the template (views/layout.html) {{if response.menu_edit and ( auth.has_membership(1) or check_credentials(request)) :}} <div class="box"> <h2 class="title">{{=T('Edit This App')}}</h2> <div class="content"> {{=MENU(response.menu_edit)}} </div> </div> {{pass}} Please let me know if you have any suggestions on this usage. On Feb 11, 10:11 pm, mdipierro <mdipie...@cs.depaul.edu> wrote: > import gluon.fileutils > > @auth.requires(auth.user and > gluon.fileutils.check_credentials(request)) > def .... > > On Feb 11, 9:21 pm, "G. Clifford Williams" > > > > <g.clifford.willi...@gmail.com> wrote: > > I'm trying to get a layout page/template to display response.menu_edit > > only if the current user is the web2py admin (read: the admin user > > that has the password set with the -a option on invocation of python > > web2py.py) > > > Thanks in advance > > > --G. Clifford Williams -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this group, send email to web2py+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/web2py?hl=en.