From 611dd6ea0bfd306404d295d6155021de34d36296 Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Mon, 16 Dec 2024 18:49:29 -0500 Subject: [PATCH] doorcontrol: Fix typo for AssignNfcCardView.permission_required --- doorcontrol/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/doorcontrol/views.py b/doorcontrol/views.py index 805a38b..f677e5c 100644 --- a/doorcontrol/views.py +++ b/doorcontrol/views.py @@ -402,7 +402,7 @@ class AssignNfcCardStatus(BaseModel): class AssignNfcCardView(PermissionRequiredMixin, TemplateView): # for storage in request.session ENROLLMENT_STATUS_SESSION_KEY = "unifi_access_enrollment_status" - requires_permission = "doorcontrol.assign_nfc_card" + permission_required = "doorcontrol.assign_nfc_card" template_name = "doorcontrol/assign_nfc_card.dj.html" def get_template_names(self) -> list[str]: