Skip to content

Commit

Permalink
[FIX] Omnichannel Take Inquiry endpoint checking wrong permission (#1…
Browse files Browse the repository at this point in the history
  • Loading branch information
renatobecker authored and sampaiodiego committed Jul 31, 2020
1 parent bf0b3f7 commit 2354cfd
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions app/livechat/imports/server/rest/inquiries.js
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 2354cfd

Please sign in to comment.