On Wed, Nov 9, 2011 at 3:52 PM, Bruno Rocha <[email protected]> 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(.....))*
>
>
>
>
> On Wed, Nov 9, 2011 at 8:16 AM, Naleen Yadav <[email protected]>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
>>
>
>
>
>
>
Thanks
Bruno Rocha for the code i tried it but its not working , i think i am
lacking some where
so can u give some example to correct my mistak.
regards