This commit is contained in:
Neil Alexander 2021-11-09 14:39:50 +00:00
parent dadc00caf1
commit 20e96f5332
No known key found for this signature in database
GPG key ID: A02A2019A2BB0944

View file

@ -160,10 +160,13 @@ func MakeJoin(
if err = gomatrixserverlib.Allowed(event.Event, &provider); err != nil {
if joinRules.JoinRule == gomatrixserverlib.Restricted {
return attemptMakeJoinForRestrictedMembership(
res := attemptMakeJoinForRestrictedMembership(
httpReq, cfg, rsAPI, &verRes,
provider, &builder, joinRules, userID,
)
j, _ := json.Marshal(res)
logrus.Info("restricted make_join response:", string(j))
return res
}
return util.JSONResponse{
Code: http.StatusForbidden,