Skip to content

Commit

Permalink
Merge pull request #12 from mhdask/permissions-fix
Browse files Browse the repository at this point in the history
permissions fix
  • Loading branch information
jeffgdotorg authored Apr 8, 2024
2 parents ef3f4a2 + 03b2ab2 commit 5cd33f0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions netbox_floorplan/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ class FloorplanSiteTabView(generic.ObjectView):
tab = ViewTab(
label='Floor Plan',
hide_if_empty=False,
permission="netbox_floorplan.view_floorplanobject",
permission="netbox_floorplan.view_floorplan",
)
template_name = "netbox_floorplan/floorplan_view.html"

Expand All @@ -38,7 +38,7 @@ class FloorplanLocationTabView(generic.ObjectView):
tab = ViewTab(
label="Floor Plan",
hide_if_empty=False,
permission="netbox_floorplan.view_floorplanobject",
permission="netbox_floorplan.view_floorplan",
)
template_name = "netbox_floorplan/floorplan_view.html"

Expand All @@ -58,7 +58,7 @@ class FloorplanListView(generic.ObjectListView):


class FloorplanAddView(PermissionRequiredMixin, View):
permission_required = "netbox_floorplan.add_floorplanobject"
permission_required = "netbox_floorplan.add_floorplano"

def get(self, request):
if request.GET.get("site"):
Expand All @@ -79,7 +79,7 @@ class FloorplanDeleteView(generic.ObjectDeleteView):


class FloorplanMapEditView(LoginRequiredMixin, View):
permission_required = "netbox_floorplan.edit_floorplanobject"
permission_required = "netbox_floorplan.edit_floorplan"

def get(self, request, pk):
fp = models.Floorplan.objects.get(pk=pk)
Expand Down

0 comments on commit 5cd33f0

Please sign in to comment.