Do not check for internal account lock for MSC3861 delegated auth
This commit is contained in:
parent
18279631e9
commit
9b40b33263
|
@ -0,0 +1 @@
|
|||
Fix a bug where admin tokens stopped working with MSC3861 auth delegation was enabled.
|
|
@ -282,17 +282,6 @@ class MSC3861DelegatedAuth(BaseAuth):
|
|||
"Impersonation not possible by a non admin user",
|
||||
)
|
||||
|
||||
# Deny the request if the user account is locked.
|
||||
if not allow_locked and await self.store.get_user_locked_status(
|
||||
requester.user.to_string()
|
||||
):
|
||||
raise AuthError(
|
||||
401,
|
||||
"User account has been locked",
|
||||
errcode=Codes.USER_LOCKED,
|
||||
additional_fields={"soft_logout": True},
|
||||
)
|
||||
|
||||
if not allow_guest and requester.is_guest:
|
||||
raise OAuthInsufficientScopeError([SCOPE_MATRIX_API])
|
||||
|
||||
|
|
Loading…
Reference in New Issue