Re: [web2py] SQLFORM grid Authentication.

2011-11-09 Thread Naleen Yadav
On Wed, Nov 9, 2011 at 3:52 PM, Bruno Rocha wrote: > try some like this: > > *def myfunction(): >> ** if request.args(0) in ['edit', 'new'] and not >> auth.has_membership('admin'): >> ** redirect(URL("NOT AUTHORIZED URL"))** >> ** return dict(grid=SQLFORM.grid(.))* > > > > > O

Re: [web2py] SQLFORM grid Authentication.

2011-11-09 Thread Bruno Rocha
try some like this: *def myfunction(): > ** if request.args(0) in ['edit', 'new'] and not > auth.has_membership('admin'): > ** redirect(URL("NOT AUTHORIZED URL"))** > ** return dict(grid=SQLFORM.grid(.))* On Wed, Nov 9, 2011 at 8:16 AM, Naleen Yadav wrote: > Hii All, > >

[web2py] SQLFORM grid Authentication.

2011-11-09 Thread Naleen Yadav
Hii All, I am using sqlform grid and i just want to put some authentication on each some functions of grid i.e(Delete , Write) for certain groups' users I can do this by using crud.xxx() but i m unable to use authentication with sqlform grid(). regards, Naleen

[web2py] SQLFORM grid Authentication.

2011-11-09 Thread Naleen Yadav
can we put some sort of authentication on sqlform grid on the basis of membership so that the user can perform specified operation for which the user is allowed. thanks