File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed
changelogs/room_versions/newsfragments Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change 1+ Fix auth rules to allow membership of `knock` -> `leave` in v7, v8, and v9.
Original file line number Diff line number Diff line change @@ -91,7 +91,8 @@ The rules are as follows:
9191 5 . Otherwise, reject.
9292 5 . If ` membership ` is ` leave ` :
9393 1 . If the ` sender ` matches ` state_key ` , allow if and only if
94- that user's current membership state is ` invite ` or ` join ` .
94+ that user's current membership state is ` invite ` , ` join ` ,
95+ or ` knock ` .
9596 2 . If the ` sender ` 's current membership state is not ` join ` ,
9697 reject.
9798 3 . If the * target user* 's current membership state is ` ban ` ,
Original file line number Diff line number Diff line change @@ -114,7 +114,8 @@ The rules are as follows:
114114 5 . Otherwise, reject.
115115 4 . If ` membership ` is ` leave ` :
116116 1 . If the ` sender ` matches ` state_key ` , allow if and only if
117- that user's current membership state is ` invite ` or ` join ` .
117+ that user's current membership state is ` invite ` , ` join ` ,
118+ or ` knock ` .
118119 2 . If the ` sender ` 's current membership state is not ` join ` ,
119120 reject.
120121 3 . If the * target user* 's current membership state is ` ban ` ,
You can’t perform that action at this time.
0 commit comments