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]: