Skip to content

Commit

Permalink
Dont limit saveinfo/messages endpoints
Browse files Browse the repository at this point in the history
  • Loading branch information
KevLehman committed Oct 9, 2023
1 parent 35598b0 commit 053ca75
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 8 deletions.
4 changes: 0 additions & 4 deletions apps/meteor/app/livechat/server/api/v1/room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -434,10 +434,6 @@ API.v1.addRoute(
throw new Error('error-invalid-room');
}

if (!(await Omnichannel.isRoomEnabled(room))) {
throw new Error('error-mac-limit-reached');
}

if (
(!room.servedBy || room.servedBy._id !== this.userId) &&
!(await hasPermissionAsync(this.userId, 'save-others-livechat-room-info'))
Expand Down
4 changes: 0 additions & 4 deletions apps/meteor/app/livechat/server/lib/Livechat.js
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ export const Livechat = {
message.alias = guest.name;
}

if (!(await Omnichannel.isRoomEnabled(room))) {
throw new Error('error-mac-limit-reached');
}

return Object.assign(await sendMessage(guest, message, room), {
newRoom,
showConnecting: this.showConnecting(),
Expand Down

0 comments on commit 053ca75

Please sign in to comment.