Document set_group_join_policy

pull/3045/head
Luke Barnard 2018-04-05 13:29:16 +01:00
parent eb8d8d6f57
commit b214a04ffc
1 changed files with 6 additions and 0 deletions

View File

@ -31,6 +31,12 @@ _DEFAULT_ROLE_ID = ""
class GroupServerStore(SQLBaseStore):
def set_group_join_policy(self, group_id, join_policy):
"""Set the join policy of a group.
join_policy can be one of:
* "invite"
* "open"
"""
return self._simple_update_one(
table="groups",
keyvalues={