mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-21 05:43:09 -06:00
Make same membership transitions 403, add sytests
This commit is contained in:
parent
002fe05a20
commit
a82936226d
|
|
@ -38,6 +38,11 @@ func (p *PerformError) JSONResponse() util.JSONResponse {
|
||||||
Code: http.StatusForbidden,
|
Code: http.StatusForbidden,
|
||||||
JSON: jsonerror.Forbidden(p.Msg),
|
JSON: jsonerror.Forbidden(p.Msg),
|
||||||
}
|
}
|
||||||
|
case PerformErrorNoOperation:
|
||||||
|
return util.JSONResponse{
|
||||||
|
Code: http.StatusForbidden,
|
||||||
|
JSON: jsonerror.Forbidden(p.Msg),
|
||||||
|
}
|
||||||
default:
|
default:
|
||||||
return util.ErrorResponse(p)
|
return util.ErrorResponse(p)
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -357,6 +357,8 @@ Getting state checks the events requested belong to the room
|
||||||
Getting state IDs checks the events requested belong to the room
|
Getting state IDs checks the events requested belong to the room
|
||||||
Can invite users to invite-only rooms
|
Can invite users to invite-only rooms
|
||||||
Uninvited users cannot join the room
|
Uninvited users cannot join the room
|
||||||
|
Users cannot invite themselves to a room
|
||||||
|
Users cannot invite a user that is already in the room
|
||||||
Invited user can reject invite
|
Invited user can reject invite
|
||||||
Invited user can reject invite for empty room
|
Invited user can reject invite for empty room
|
||||||
Invited user can reject local invite after originator leaves
|
Invited user can reject local invite after originator leaves
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue