Skip to content
Snippets Groups Projects
Commit 3d997eab authored by Diego Sampaio's avatar Diego Sampaio
Browse files

added description and protected flag to default roles

parent 13fd2b7f
No related branches found
No related tags found
No related merge requests found
......@@ -129,12 +129,12 @@ Meteor.startup ->
RocketChat.models.Permissions.upsert( permission._id, {$set: permission })
defaultRoles = [
{ name: 'admin', scope: 'Users' }
{ name: 'moderator', scope: 'Subscriptions' }
{ name: 'owner', scope: 'Subscriptions' }
{ name: 'user', scope: 'Users' }
{ name: 'bot', scope: 'Users' }
{ name: 'admin', scope: 'Users', description: 'Rocket.Chat admins' }
{ name: 'moderator', scope: 'Subscriptions', description: 'Room moderators' }
{ name: 'owner', scope: 'Subscriptions', description: 'Room owners' }
{ name: 'user', scope: 'Users', description: 'Users' }
{ name: 'bot', scope: 'Users', description: 'Bots' }
]
for role in defaultRoles
RocketChat.models.Roles.createOrUpdate role.name, role.scope
RocketChat.models.Roles.createOrUpdate role.name, role.scope, role.description, 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