Make "Remove" option conditional in context menu

Refactor code in the backend so things can work
better
This commit is contained in:
vSLG
2020-04-01 14:33:19 -03:00
committed by miruka
parent fc878e7537
commit e60a7f6dac
6 changed files with 69 additions and 34 deletions

View File

@@ -70,6 +70,7 @@ class Room(ModelItem):
guests_allowed: bool = True
can_invite: bool = False
can_redact: bool = False
can_send_messages: bool = False
can_set_name: bool = False
can_set_topic: bool = False