#13709: Delete action is visble if no delete permission given [PATCH]
----------------------------------+-----------------------------------------
 Reporter:  sebastian_noack       |       Owner:  nobody    
   Status:  new                   |   Milestone:            
Component:  django.contrib.admin  |     Version:  1.2       
 Keywords:                        |       Stage:  Unreviewed
Has_patch:  1                     |  
----------------------------------+-----------------------------------------
 Admin actions are missing some permission checking hooks, in order to only
 show the actions that are usable. You can choose the delete action also if
 you don't have the delete permission in the admin, but it will raise
 PermissionDenied. However I think it would be nice to have an optional
 callback which determines wheter an action is available for a given
 request or not. My patch checks for a has_permission attribute on the
 action function and calls it in ModelAdmin.get_actions(), so it retruns
 only the actions, where permissions are granted.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13709>
Django <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.

Reply via email to