mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-07-31 21:32:46 +00:00
Fix return codes
This commit is contained in:
parent
831f3b9307
commit
35bc2e98e6
2 changed files with 2 additions and 3 deletions
|
@ -322,8 +322,8 @@ func attemptMakeJoinForRestrictedMembership(
|
|||
|
||||
logger.Error("No room matching join rule memberships found")
|
||||
return util.JSONResponse{
|
||||
Code: http.StatusBadRequest,
|
||||
JSON: jsonerror.UnableToAuthoriseJoin("You are not joined to any allowed rooms"),
|
||||
Code: http.StatusForbidden,
|
||||
JSON: jsonerror.Forbidden("You are not joined to any allowed rooms"),
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue