I have a problem then.
I just need to test if a user have permission to edit a field in Admin.

Quoting Michael Radziej <[EMAIL PROTECTED]>:

>
> [EMAIL PROTECTED] wrote:
>> Hi,
>> I need the access to the logged-in user object in a model, to verify
>> permissions.
>> How I do that?
>
> You can't. The model is decoupled from the http stuff and has no way  
>  to access it.
>
> Such kind of validations must be done in the Manipulator or view.
>
> There are dirty tricks like shoving response.user into thread local   
> store, but usually it turns out much better to handle this in the   
> Manipulator.
>
> Michael
>
>
> >
>




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Django users" group.
To post to this group, send email to django-users@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/django-users
-~----------~----~----~----~------~----~------~--~---

Reply via email to