From 2354cfd527470ea464809677dc010acfa325a96b Mon Sep 17 00:00:00 2001 From: Renato Becker Date: Fri, 31 Jul 2020 18:55:21 -0300 Subject: [PATCH] [FIX] Omnichannel Take Inquiry endpoint checking wrong permission (#18446) --- app/livechat/imports/server/rest/inquiries.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/app/livechat/imports/server/rest/inquiries.js b/app/livechat/imports/server/rest/inquiries.js index 3abfc5eee735..85b23f2f00ef 100644 --- a/app/livechat/imports/server/rest/inquiries.js +++ b/app/livechat/imports/server/rest/inquiries.js @@ -48,9 +48,6 @@ API.v1.addRoute('livechat/inquiries.list', { authRequired: true }, { API.v1.addRoute('livechat/inquiries.take', { authRequired: true }, { post() { - if (!hasPermission(this.userId, 'view-livechat-manager')) { - return API.v1.unauthorized(); - } try { check(this.bodyParams, { inquiryId: String,