1
0
mirror of https://github.com/netbox-community/netbox.git synced 2024-05-10 07:54:54 +00:00

Add missing PermissionRequiredMixin to TagListView

This commit is contained in:
Jeremy Stretch
2019-06-05 14:47:43 -04:00
parent 50cbfb9360
commit 8b3ec625f6

View File

@@ -27,7 +27,8 @@ from .tables import ConfigContextTable, ObjectChangeTable, TagTable, TaggedItemT
# Tags
#
class TagListView(ObjectListView):
class TagListView(PermissionRequiredMixin, ObjectListView):
permission_required = 'extras.view_tag'
queryset = Tag.objects.annotate(
items=Count('extras_taggeditem_items', distinct=True)
).order_by(