Skip to content

Commit

Permalink
fixed capabilities sample user
Browse files Browse the repository at this point in the history
added the displayable arg to sample users property capabilities
  • Loading branch information
agmes4 committed Jan 18, 2025
1 parent 81324b5 commit 4ac1cc4
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions sipa/model/sample/user.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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):
Expand Down Expand Up @@ -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):
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 4ac1cc4

Please sign in to comment.