Skip to content

Commit

Permalink
Do not reset pin-message permission roles on server restart (#2919)
Browse files Browse the repository at this point in the history
  • Loading branch information
LVH1 authored and engelgabriel committed Apr 18, 2016
1 parent d8aba3f commit 472a8ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rocketchat-message-pin/server/settings.coffee
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Meteor.startup ->
RocketChat.settings.add 'Message_AllowPinning', true, { type: 'boolean', group: 'Message', public: true }

RocketChat.models.Permissions.upsert( 'pin-message', {$set: { roles: [ 'owner', 'moderator', 'admin' ] } })
RocketChat.models.Permissions.upsert('pin-message', {$addToSet: {roles: {$each: ['owner', 'moderator', 'admin']}}})

0 comments on commit 472a8ba

Please sign in to comment.