On 20/10/2011 07:43, petrasadi wrote:
Is it possible to set custom levels of access for view, edit and
delete functions of the smartgrid?
For example, can I allow all users to access "View", but only
authenticated user to access "Edit"?
Thank you
what about to calculate the proper boolean value of grid properties
based on the user roles and use it in the grid itself? I mean something like
def foo():
if auth.user_group=='<group name>':
editable=True
else:
editable=False
form=SQLFORM.grid(<my query>, eiditable=editable)
return dict(form=form)
Manuele