mirror of
https://github.com/hoernschen/dendrite.git
synced 2025-04-11 14:23:39 +00:00
Remove check that can't be satisied with the original auth events
This commit is contained in:
parent
ce91d535e4
commit
16b32316c2
1 changed files with 0 additions and 10 deletions
|
@ -298,16 +298,6 @@ func attemptMakeJoinForRestrictedMembership(
|
||||||
// and found by us.
|
// and found by us.
|
||||||
signed := event.Sign(string(cfg.Matrix.ServerName), cfg.Matrix.KeyID, cfg.Matrix.PrivateKey)
|
signed := event.Sign(string(cfg.Matrix.ServerName), cfg.Matrix.KeyID, cfg.Matrix.PrivateKey)
|
||||||
|
|
||||||
// Now, see if the join is valid with the new changes. If it isn't
|
|
||||||
// then something else is forbidding the join.
|
|
||||||
if err = gomatrixserverlib.Allowed(&signed, &provider); err != nil {
|
|
||||||
logger.WithError(err).Error("Join is not allowed")
|
|
||||||
return util.JSONResponse{
|
|
||||||
Code: http.StatusForbidden,
|
|
||||||
JSON: jsonerror.Forbidden(err.Error()),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
// Otherwise, the new join event looks good, so return it.
|
// Otherwise, the new join event looks good, so return it.
|
||||||
return util.JSONResponse{
|
return util.JSONResponse{
|
||||||
Code: http.StatusOK,
|
Code: http.StatusOK,
|
||||||
|
|
Loading…
Reference in a new issue