fix needlessly strict appservice user existence check
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
@@ -197,10 +197,6 @@ async fn auth_appservice(services: &Services, request: &Request, info: Box<Regis
|
|||||||
return Err!(Request(Exclusive("User is not in namespace.")));
|
return Err!(Request(Exclusive("User is not in namespace.")));
|
||||||
}
|
}
|
||||||
|
|
||||||
if !services.users.exists(&user_id).await {
|
|
||||||
return Err!(Request(Forbidden("User does not exist.")));
|
|
||||||
}
|
|
||||||
|
|
||||||
Ok(Auth {
|
Ok(Auth {
|
||||||
origin: None,
|
origin: None,
|
||||||
sender_user: Some(user_id),
|
sender_user: Some(user_id),
|
||||||
|
|||||||
Reference in New Issue
Block a user