diff --git a/django/contrib/comments/admin.py b/django/contrib/comments/admin.py
index 28678e0..4cb9066 100644
a
|
b
|
class CommentsAdmin(admin.ModelAdmin):
|
28 | 28 | def get_actions(self, request): |
29 | 29 | actions = super(CommentsAdmin, self).get_actions(request) |
30 | 30 | # Only superusers should be able to delete the comments from the DB. |
31 | | if not request.user.is_superuser: |
| 31 | if not request.user.is_superuser and 'delete_selected' in actions: |
32 | 32 | actions.pop('delete_selected') |
33 | 33 | if not request.user.has_perm('comments.can_moderate'): |
34 | | actions.pop('approve_comments') |
35 | | actions.pop('remove_comments') |
| 34 | if 'approve_comments' in actions: |
| 35 | actions.pop('approve_comments') |
| 36 | if 'remove_comments' in actions: |
| 37 | actions.pop('remove_comments') |
36 | 38 | return actions |
37 | 39 | |
38 | 40 | def flag_comments(self, request, queryset): |