The communications platform that puts data protection first.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
Rocket.Chat/app/message-pin/server/settings.js

13 lines
343 B

import { Meteor } from 'meteor/meteor';
import { settings } from '../../settings';
import { Permissions } from '../../models';
Meteor.startup(function() {
settings.add('Message_AllowPinning', true, {
type: 'boolean',
group: 'Message',
public: true,
});
return Permissions.create('pin-message', ['owner', 'moderator', 'admin']);
});