http://web2py.com/book/default/chapter/08?search=setting#Customizing-Auth

Maybe you can try at the model level?

Also if you define your auth tables and rename it you maybe have to use the
new name... Not sure of that actually.

Richard

On Wed, Aug 31, 2011 at 1:05 PM, annet <[email protected]> wrote:

> I have two fields in the auth_user table which I don't want to be
> visible when the user edits his profile. In def user(): I set:
>
> def user():
>    ....
>    if request.args(0)=='profile':
>        db.auth_user.comment.readable=False
>        db.auth_user.comment.writable=False
>        db.auth_user.reply.readable=False
>        db.auth_user.reply.writable=False
>    ....
>    return dict(form=form)
>
> However, this doesn't work the fields are still shown. What is the
> correct way to achieve this.
>
>
> Kind regards,
>
> Annet.

Reply via email to