2007/6/18, David Larlet <[EMAIL PROTECTED]>:
> Hi,
>
> I've just tried to use the permission_required decorator for my views
> and I realise that there is a missing 'retrieve' permission. It's a
> bit odd because others ones follow the CRUD permissions.
>
> Am I missing something here?
>
> The patch is trivial:
> Add 'retrieve' to the auth.management._get_all_permissions function,
> but I don't want to hack my django code so I wonder why this choice
> had been done? (I suspect the admin goal which is driven by the
> User.is_staff field but auth can be used elsewhere).
>
> David
>

Am I the only one who deal with this kind of permission issue? Or
maybe there is an evident solution that I haven't found yet? I think
it can be useful to restrict access in views or even better in urls
and it works very well except for retrieve permission which doesn't
exist.

David

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

Reply via email to