Skip to content
This repository has been archived by the owner on Apr 26, 2024. It is now read-only.

Fix typo when checking if user is invited to group #2599

Merged
merged 1 commit into from
Oct 27, 2017
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion synapse/groups/groups_server.py
Original file line number Diff line number Diff line change
Expand Up @@ -642,7 +642,10 @@ def accept_invite(self, group_id, requester_user_id, content):

yield self.check_group_is_ours(group_id, requester_user_id, and_exists=True)

if not self.store.is_user_invited_to_local_group(group_id, requester_user_id):
is_invited = yield self.store.is_user_invited_to_local_group(
group_id, requester_user_id,
)
if not is_invited:
raise SynapseError(403, "User not invited to group")

if not self.hs.is_mine_id(requester_user_id):
Expand Down