There was an error while loading. Please reload this page.
1 parent ed5e8a7 commit e2667aeCopy full SHA for e2667ae
1 file changed
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