On Jun 2, 10:55 am, annet.verm...@gmail.com wrote:
> Dan,
>
> Removing the readable=False and writable=False from your model to a
> custom controller from which you call update on the crud object should
> solve the problem. For example:
>
> @auth.requires_membership('manager')
> def update_company():
> ...
> db.company.status.writable=False
> ...
> form=crud.update(db.company,...,next=(URL
> (r=request,f='update_company')),deletable=False)
> return dict(form=form)
>
> Kind regards,
>
> Annet
In the case of the auth_user table, the users have access to edit
their own information -- and it needs to be set up as readable/
writable=False in the model to prevent the users from editing it. Am I
missing something in your suggestion?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to
web2py+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---