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
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,
>
>
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
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
4 matches
Mail list logo