From d219f2fa0168483c7c38676a20b26b1c10541d8a Mon Sep 17 00:00:00 2001 From: Alex Date: Fri, 27 Dec 2024 13:21:08 +0100 Subject: [PATCH] fixup! refactoring --- sipa/model/pycroft/user.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sipa/model/pycroft/user.py b/sipa/model/pycroft/user.py index 10f39945..14f0b98b 100644 --- a/sipa/model/pycroft/user.py +++ b/sipa/model/pycroft/user.py @@ -325,7 +325,7 @@ def membership_end_date(self) -> ActiveProperty[date | None, date | None]: @property def mpsk_clients(self) -> ActiveProperty[str | None, str | None]: - return ActiveProperty(name="mpsk_clients", value=self.config["mpsk_clients"], capabilities=Capabilities(edit=True, delete=False, displayable=False),) + return ActiveProperty(name="mpsk_clients", value=self.user_data.mpsk_clients, capabilities=Capabilities(edit=True, delete=False, displayable=False),) def change_mpsk_clients(self, mac, name, mpsk_id, password: str): status, _ = api.change_mpsk(self.user_data.id, mac, name, mpsk_id, password)