There was an error while loading. Please reload this page.
1 parent 1827963 commit 842b43cCopy full SHA for 842b43c
2 files changed
changelog.d/16215.bugfix
@@ -0,0 +1 @@
1
+Fix a bug where admin tokens stopped working with MSC3861 auth delegation was enabled.
synapse/api/auth/msc3861_delegated.py
@@ -282,17 +282,6 @@ async def get_user_by_req(
282
"Impersonation not possible by a non admin user",
283
)
284
285
- # Deny the request if the user account is locked.
286
- if not allow_locked and await self.store.get_user_locked_status(
287
- requester.user.to_string()
288
- ):
289
- raise AuthError(
290
- 401,
291
- "User account has been locked",
292
- errcode=Codes.USER_LOCKED,
293
- additional_fields={"soft_logout": True},
294
- )
295
-
296
if not allow_guest and requester.is_guest:
297
raise OAuthInsufficientScopeError([SCOPE_MATRIX_API])
298
0 commit comments