diff --git a/django/contrib/comments/admin.py b/django/contrib/comments/admin.py
index 4cb9066..5eeca06 100644
|
a
|
b
|
class CommentsAdmin(admin.ModelAdmin):
|
| 27 | 27 | |
| 28 | 28 | def get_actions(self, request): |
| 29 | 29 | actions = super(CommentsAdmin, self).get_actions(request) |
| 30 | | # Only superusers should be able to delete the comments from the DB. |
| 31 | | if not request.user.is_superuser and 'delete_selected' in actions: |
| | 30 | if not request.user.has_perm('comments.delete_comment') and 'delete_selected' in actions: |
| 32 | 31 | actions.pop('delete_selected') |
| 33 | 32 | if not request.user.has_perm('comments.can_moderate'): |
| 34 | 33 | if 'approve_comments' in actions: |