fix needlessly strict appservice user existence check
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
8611cc0ee9
commit
e9fee04eef
1 changed files with 0 additions and 4 deletions
|
@ -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),
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue