In controllers/default.py, inside *user* function set *readable* and 
*writable* to *False* for the fields that you want to hide.

def user():

*    db.auth_user.field_name.readable = False    
db.auth_user.field_name.writable = False*
    return dict(form=auth())

On Wednesday, June 8, 2022 at 2:02:54 AM UTC+5:30 Vlad wrote:

> I added a few fields to auth_user, but they are for internal usage, so I 
> don't want users to see those when they are logged in. How do I manage the 
> visibility of the fields in the user profile? 
>

-- 
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.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/web2py/28026264-b761-44f0-8074-2eabfa6dd42fn%40googlegroups.com.

Reply via email to