Disable restricted role for now

It is not implemented in snikket-server yet, so we don’t want to
put anything misleading out there.
This commit is contained in:
Jonas Schäfer
2021-03-25 17:29:46 +01:00
parent ea7ed7c030
commit a48abacf1d
2 changed files with 52 additions and 47 deletions

View File

@@ -56,6 +56,9 @@ async def users() -> str:
)
_LIMITED_ROLE_NAME = _("Limited")
class EditUserForm(BaseForm):
localpart = wtforms.StringField(
_l("Login name"),
@@ -68,7 +71,9 @@ class EditUserForm(BaseForm):
role = wtforms.RadioField(
_l("Access Level"),
choices=[
("prosody:restricted", _l("Limited")),
# NOTE: enable this only after something has been done which
# actually enforces the described restrictions :).
# ("prosody:restricted", _l("Limited")),
("prosody:normal", _l("Normal user")),
("prosody:admin", _l("Administrator")),
],