From 16b32316c22da51c6e1b6921741a3ad41f0739a8 Mon Sep 17 00:00:00 2001 From: Neil Alexander Date: Tue, 9 Nov 2021 13:10:05 +0000 Subject: [PATCH] Remove check that can't be satisied with the original auth events --- federationapi/routing/join.go | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/federationapi/routing/join.go b/federationapi/routing/join.go index 0f213048..eda8ead1 100644 --- a/federationapi/routing/join.go +++ b/federationapi/routing/join.go @@ -298,16 +298,6 @@ func attemptMakeJoinForRestrictedMembership( // and found by us. 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. return util.JSONResponse{ Code: http.StatusOK,