Skip to content
Snippets Groups Projects
Commit b214a04f authored by Luke Barnard's avatar Luke Barnard
Browse files

Document set_group_join_policy

parent eb8d8d6f
No related branches found
No related tags found
No related merge requests found
......@@ -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={
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment