You didn't understand. In both cases I'm logged in.
If I have @requires_login() it all works. If I replace it with 
@requires_signature() the grid opens OK, but I'm unable to edit a record.

The menu option I created to open the grid has the user_signature=True and 
the grid has the default of user_signature=True.


domingo, 21 de Abril de 2019 às 00:53:07 UTC+1, Massimo Di Pierro escreveu:
>
> It is intentional. The grid requires a valid user to make field editable. 
> You can override this with:
>
> grid(..., user_signature=False)
>
> In any case if the user is not logged if you tables require a user 
> signature, those fields will not be automatically filled.
>
> On Saturday, 20 April 2019 13:03:17 UTC-7, João Matos wrote:
>>
>> If I replace @auth_requires_login() with @auth.requires_signature() to my 
>> index function (controller's main function) where a grid is created, the 
>> grid shows up without any issue, but if I try to edit a row, I get a Not 
>> Authorized message.
>>
>> Anyone has any idea why this is happening?
>>
>> If I replace @auth.requires_signature() with @auth.requires_login() 
>> everything works.
>>
>

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to