You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We have a REST endpoint to take a queued inquiry that checks for view-livechat-manager permission, it doesn't allow users that doesn't have this permission to take an inquiry, since they don't would see these rooms.
On the web client, we can see queued rooms, even without this permission, and we're able to take it, since the page is calling a methodCall that don't check for this permission.
Description:
We have a REST endpoint to take a queued inquiry that checks for
view-livechat-manager
permission, it doesn't allow users that doesn't have this permission to take an inquiry, since they don't would see these rooms.On the web client, we can see queued rooms, even without this permission, and we're able to take it, since the page is calling a methodCall that don't check for this permission.
Relevant code:
https://github.com/RocketChat/Rocket.Chat/blob/develop/app/livechat/imports/server/rest/inquiries.js#L51
https://github.com/RocketChat/Rocket.Chat/blob/develop/app/livechat/client/views/app/livechatReadOnly.js#L40
Steps to reproduce:
view-livechat-manager
permissionExpected behavior:
Consistence between the REST and method call.
Actual behavior:
If you use the REST endpoint you'll receive a 403 (non-authorized)
If you use a method call it'll allow you to take the room
Server Setup Information:
Client Setup Information
Additional context
Relevant logs:
The text was updated successfully, but these errors were encountered: