diff options
author | Erik Johnston <erik@matrix.org> | 2017-07-11 11:45:32 +0100 |
---|---|---|
committer | Erik Johnston <erik@matrix.org> | 2017-07-11 11:45:32 +0100 |
commit | 8ba89f1050c523506b99be376b9b052fd68e5bd5 (patch) | |
tree | c98ac7c21e985de869dda3d0f203203d0f3face8 /synapse | |
parent | Lift out visibility parsing (diff) | |
download | synapse-8ba89f1050c523506b99be376b9b052fd68e5bd5.tar.xz |
Remove u/ requirement
Diffstat (limited to 'synapse')
-rw-r--r-- | synapse/groups/groups_server.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/synapse/groups/groups_server.py b/synapse/groups/groups_server.py index 1ac946abc3..61fe0d49d9 100644 --- a/synapse/groups/groups_server.py +++ b/synapse/groups/groups_server.py @@ -350,9 +350,10 @@ class GroupsServerHandler(object): if group: raise SynapseError(400, "Group already exists") + # TODO: Add config to enforce that only server admins can create rooms is_admin = yield self.auth.is_server_admin(UserID.from_string(user_id)) - if not is_admin and not group_id.startswith("+u/"): - raise SynapseError(403, "Group ID must start with '+u/' or be a server admin") + if not is_admin: + raise SynapseError(403, "Only server admin can create group on this server") profile = content.get("profile", {}) name = profile.get("name") |