#5447: has_{add,change,delete}_permission not working correctly
---------------------------+------------------------------------------------
Reporter: anonymous | Owner: nobody
Status: new | Component: Admin interface
Version: newforms-admin | Keywords:
Stage: Unreviewed | Has_patch: 0
---------------------------+------------------------------------------------
Using "def has_add_permission(*args):return False" in the model options
only raises a permission denied when trying to add an object but it
doesn't hide the "add object" button in change_list.html and index.html
(and they seem to use different ways to check if the object has the add
permission: change_list.html uses "{% if has_add_permission %}" while
index.html uses {% if model.perms.add %})
This also applies to "has_change_permission" and "has_delete_permission".
Moreover I think that when has_change_permission returns False, it
should't allow to modify (save modified) objects, while currently it
doesn't allow to see the list of objects.
--
Ticket URL: <http://code.djangoproject.com/ticket/5447>
Django Code <http://code.djangoproject.com/>
The web framework for perfectionists with deadlines
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Django updates" 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-updates?hl=en
-~----------~----~----~----~------~----~------~--~---