Skip to content
This repository has been archived by the owner on Jun 7, 2024. It is now read-only.

Commit

Permalink
Merge pull request #19 from ebboyer/master
Browse files Browse the repository at this point in the history
More Permissions Fixes
  • Loading branch information
tbotnz authored Nov 25, 2023
2 parents a65835a + 6feea18 commit 9657ebd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions netbox_floorplan/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ class FloorplanListView(generic.ObjectListView):


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

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 9657ebd

Please sign in to comment.