It raises a 404 error when "modify profil" is cliked...

I add those line to catch it up in the user controller:

    if request.args[0] == 'profile':
        return dict(form='you are not allowed (permission)')

Maybe it could be simpler to just remove the entry in the layout??

Or both...

Jonhy

On 2010-07-12 15:31, mdipierro wrote:
auth.settings.actions_disabled.append('profile')

On 12 Lug, 10:29, Jean-Guy<jean...@gmail.com>  wrote:
I get this error :

AttributeError:'NoneType'object has no attribute'append'

I put this :

auth.settings.function_disabled.append('profile')

In the db.py and in the user function...

Jonhy

On 2010-07-12 11:04, mdipierro wrote:

That line only links the edit profile page. To block it you need to
1) remove the list (as you did) and
2) auth.settings.function_disabled.append('profile')
On 12 Lug, 09:48, Jean-Guy<jean...@gmail.com>    wrote:
Hello,
It says here :http://web2py.com/book/default/section/8/1?search=profile
That this line :
http://.../[app]/default/user/profile
Control if the user can or not edit their profile by exposing or not the
function.
I remove it but the users can still edit their profiles.
Do I miss something?
Jonhy

Reply via email to