Add missing PermissionRequiredMixin to TagListView
This commit is contained in:
@@ -27,7 +27,8 @@ from .tables import ConfigContextTable, ObjectChangeTable, TagTable, TaggedItemT
|
|||||||
# Tags
|
# Tags
|
||||||
#
|
#
|
||||||
|
|
||||||
class TagListView(ObjectListView):
|
class TagListView(PermissionRequiredMixin, ObjectListView):
|
||||||
|
permission_required = 'extras.view_tag'
|
||||||
queryset = Tag.objects.annotate(
|
queryset = Tag.objects.annotate(
|
||||||
items=Count('extras_taggeditem_items', distinct=True)
|
items=Count('extras_taggeditem_items', distinct=True)
|
||||||
).order_by(
|
).order_by(
|
||||||
|
Reference in New Issue
Block a user