Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
Matrix
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Container Registry
Model registry
Operate
Environments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
TeDomum
Matrix
Commits
c824b29e
Commit
c824b29e
authored
8 years ago
by
Mark Haines
Browse files
Options
Downloads
Patches
Plain Diff
Check if the user is banned when handling 3pid invites
parent
33d77764
Loading
Loading
Loading
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/api/auth.py
+4
-0
4 additions, 0 deletions
synapse/api/auth.py
with
4 additions
and
0 deletions
synapse/api/auth.py
+
4
−
0
View file @
c824b29e
...
...
@@ -376,6 +376,10 @@ class Auth(object):
if
Membership
.
INVITE
==
membership
and
"
third_party_invite
"
in
event
.
content
:
if
not
self
.
_verify_third_party_invite
(
event
,
auth_events
):
raise
AuthError
(
403
,
"
You are not invited to this room.
"
)
if
target_banned
:
raise
AuthError
(
403
,
"
%s is banned from the room
"
%
(
target_user_id
,)
)
return
True
if
Membership
.
JOIN
!=
membership
:
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment