diff --git a/apps/meteor/tests/end-to-end/api/04-direct-message.js b/apps/meteor/tests/end-to-end/api/04-direct-message.js index c20b454a9051..9ef666d742d3 100644 --- a/apps/meteor/tests/end-to-end/api/04-direct-message.js +++ b/apps/meteor/tests/end-to-end/api/04-direct-message.js @@ -394,7 +394,7 @@ describe('[Direct Messages]', function () { }); 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)