Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
synapse
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Model registry
Monitor
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Maunium
synapse
Commits
7932d4e9
Commit
7932d4e9
authored
4 years ago
by
Erik Johnston
Browse files
Options
Downloads
Patches
Plain Diff
Don't MAU limit AS ghost users
parent
9b26a4ac
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
synapse/api/auth_blocking.py
+7
-0
7 additions, 0 deletions
synapse/api/auth_blocking.py
with
7 additions
and
0 deletions
synapse/api/auth_blocking.py
+
7
−
0
View file @
7932d4e9
...
...
@@ -36,6 +36,7 @@ class AuthBlocking:
self
.
_limit_usage_by_mau
=
hs
.
config
.
limit_usage_by_mau
self
.
_mau_limits_reserved_threepids
=
hs
.
config
.
mau_limits_reserved_threepids
self
.
_server_name
=
hs
.
hostname
self
.
_track_appservice_user_ips
=
hs
.
config
.
appservice
.
track_appservice_user_ips
async
def
check_auth_blocking
(
self
,
...
...
@@ -76,6 +77,12 @@ class AuthBlocking:
# We never block the server from doing actions on behalf of
# users.
return
elif
requester
.
app_service
and
not
self
.
_track_appservice_user_ips
:
# If we're authenticated as an appservice then we only block
# auth if `track_appservice_user_ips` is set, as that option
# implicitly means that application services are part of MAU
# limits.
return
# Never fail an auth check for the server notices users or support user
# This can be a problem where event creation is prohibited due to blocking
...
...
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