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 <naleenya...@gmail.com> wrote:

> 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
>



-- 

Bruno Rocha
[http://rochacbruno.com.br]

Reply via email to