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 Jul 31, 2020
1 parent 4ebe528 commit 7d2262b
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 7d2262b

Please sign in to comment.