mirror of
https://github.com/netbox-community/netbox.git
synced 2024-05-10 07:54:54 +00:00
Fixes #4071: Enforce "view tag" permission on individual tag view
This commit is contained in:
@@ -17,9 +17,6 @@ class TagTestCase(StandardTestCases.Views):
|
||||
test_create_object = None
|
||||
test_import_objects = None
|
||||
|
||||
# TODO: Restore test when #4071 is resolved
|
||||
test_get_object = None
|
||||
|
||||
@classmethod
|
||||
def setUpTestData(cls):
|
||||
|
||||
|
@@ -37,7 +37,8 @@ class TagListView(PermissionRequiredMixin, ObjectListView):
|
||||
template_name = 'extras/tag_list.html'
|
||||
|
||||
|
||||
class TagView(View):
|
||||
class TagView(PermissionRequiredMixin, View):
|
||||
permission_required = 'extras.view_tag'
|
||||
|
||||
def get(self, request, slug):
|
||||
|
||||
|
Reference in New Issue
Block a user