diff --git a/apps/meteor/tests/end-to-end/api/direct-message.ts b/apps/meteor/tests/end-to-end/api/direct-message.ts index 090eae0d7944b..e4ebaced41f71 100644 --- a/apps/meteor/tests/end-to-end/api/direct-message.ts +++ b/apps/meteor/tests/end-to-end/api/direct-message.ts @@ -404,7 +404,7 @@ describe('[Direct Messages]', () => { }); it('should fail when the endpoint is disabled and the user doesnt have permission', async () => { await updateSetting('API_Enable_Direct_Message_History_EndPoint', false); - await updatePermission('view-room-administration', ['admin']); + await updatePermission('view-room-administration', []); await request .get(api('im.messages.others')) .set(credentials)