Regression: Create livechat-monitor permissions for Canned Responses (#22781)
* contextual-bar monitor permissions * Add monitor to livechat-canned-responses permission * omnichannel canned-responses monitor permissions * remove button * fix Co-authored-by: Kevin Aleman <kevin.aleman@rocket.chat>pull/22782/head^2
parent
66c51f1a29
commit
1937aae726
@ -0,0 +1,11 @@ |
||||
import { Migrations } from '../../../app/migrations'; |
||||
import { Permissions } from '../../../app/models'; |
||||
|
||||
Migrations.add({ |
||||
version: 228, |
||||
up() { |
||||
if (Permissions) { |
||||
Permissions.update({ _id: 'manage-livechat-canned-responses' }, { $addToSet: { roles: 'livechat-monitor' } }); |
||||
} |
||||
}, |
||||
}); |
Loading…
Reference in new issue