mirror of
https://github.com/netbox-community/netbox.git
synced 2025-07-27 02:48:38 -06:00
Add missing PermissionRequiredMixin to TagListView
This commit is contained in:
parent
05e33b0d51
commit
35fb3f599c
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user