Skip to content
Snippets Groups Projects
Commit 15ea5c32 authored by Bradley Hilton's avatar Bradley Hilton
Browse files

Add the migration for bots to be able to create rooms

parent c3154fc1
No related branches found
No related tags found
No related merge requests found
RocketChat.Migrations.add({
version: 78,
up: function() {
RocketChat.models.Permissions.update({ _id: { $in: ['create-c', 'create-d', 'create-p'] }}, { $addToSet: { roles: 'bot' }}, { multi: true });
}
});
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment