Allow users that have left the room to view the member list from the point they left

This commit is contained in:
Mark Haines 2015-09-09 15:42:16 +01:00
parent 1d579df664
commit bc8b25eb56
3 changed files with 15 additions and 43 deletions

View file

@ -492,9 +492,9 @@ class RoomsMemberListTestCase(RestTestCase):
self.assertEquals(200, code, msg=str(response))
yield self.leave(room=room_id, user=self.user_id)
# can no longer see list, you've left.
# can see old list once left
(code, response) = yield self.mock_resource.trigger_get(room_path)
self.assertEquals(403, code, msg=str(response))
self.assertEquals(200, code, msg=str(response))
class RoomsCreateTestCase(RestTestCase):