New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

nodebb-plugin-poll

Package Overview
Dependencies
Maintainers
5
Versions
70
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nodebb-plugin-poll - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

3

languages/en_GB/poll.json

@@ -46,3 +46,4 @@ {

"vote_count": "users voted for this option",
"votes": "votes"
"votes": "votes",
"admin.create-poll": "Create Poll"
}
'use strict';
const NodeBB = require('./lib/nodebb');
const NodeBB = require('./lib/nodebb');
const Config = require('./lib/config');

@@ -49,17 +49,8 @@ const Sockets = require('./lib/sockets');

Plugin.addUserPrivilege = function (privileges, callback) {
privileges.push('poll:create');
callback(null, privileges);
Plugin.addPrivilege = function (hookData) {
hookData.privileges.set(
'poll:create', { label: '[[poll:admin.create-poll]]' },
);
};
Plugin.addPrivilegeLabels = function (labels, callback) {
labels.push({ name: 'Create Poll' });
callback(null, labels);
};
Plugin.addGroupPrivilege = function (privileges, callback) {
privileges.push('groups:poll:create');
callback(null, privileges);
};
Plugin.copyPrivilegesFrom = function (data, callback) {

@@ -66,0 +57,0 @@ if (data.privileges.indexOf('poll:create') === -1) {

{
"name": "nodebb-plugin-poll",
"version": "3.0.0",
"version": "3.0.1",
"description": "NodeBB Poll Plugin",

@@ -5,0 +5,0 @@ "main": "library.js",

@@ -11,9 +11,4 @@ {

{ "hook": "filter:composer.formatting", "method": "registerFormatting" },
{ "hook": "filter:privileges.list", "method": "addUserPrivilege" },
{ "hook": "filter:privileges.groups.list", "method": "addGroupPrivilege" },
{ "hook": "filter:privileges.list_human", "method": "addPrivilegeLabels" },
{ "hook": "filter:privileges.groups.list_human", "method": "addPrivilegeLabels" },
{ "hook": "static:privileges.categories.init", "method": "addPrivilege" },
{ "hook": "filter:categories.copyPrivilegesFrom", "method": "copyPrivilegesFrom" },
{ "hook": "filter:topic.post", "method": "hooks.filter.topicPost" },

@@ -20,0 +15,0 @@ { "hook": "filter:parse.raw", "method": "hooks.filter.parseRaw", "priority": 1 },

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc