From 4ac1cc4738f100a3bf74dba2a376cb82cc89a76c Mon Sep 17 00:00:00 2001 From: Alex Date: Sat, 18 Jan 2025 12:01:59 +0100 Subject: [PATCH] fixed capabilities sample user added the displayable arg to sample users property capabilities --- sipa/model/sample/user.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/sipa/model/sample/user.py b/sipa/model/sample/user.py index 286be34c..012fe3bd 100644 --- a/sipa/model/sample/user.py +++ b/sipa/model/sample/user.py @@ -155,7 +155,7 @@ def mac(self): return ActiveProperty[str, str]( name="mac", value=self.config["mac"], - capabilities=Capabilities(edit=True, delete=False), + capabilities=Capabilities(edit=True, delete=False, displayable=True), ) @mac.setter @@ -164,7 +164,7 @@ def mac(self, value): @property def mpsk_clients(self) -> ActiveProperty[str | None, list | 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.config["mpsk_clients"], capabilities=Capabilities(edit=True, delete=False, displayable=False)) @mpsk_clients.setter def mpsk_clients(self, value): @@ -193,7 +193,7 @@ def mail(self): return ActiveProperty[str, str]( name="mail", value=self.config["mail"], - capabilities=Capabilities(edit=True, delete=False), + capabilities=Capabilities(edit=True, delete=False, displayable=True), ) def change_mail(self, password: str, new_mail: str, mail_forwarded: bool): @@ -224,7 +224,7 @@ def network_access_active(self): return ActiveProperty[bool, bool]( name="network_access_active", value=True, - capabilities=Capabilities(edit=True, delete=False), + capabilities=Capabilities(edit=True, delete=False, displayable=True), ) @property