nodebb-plugin-poll 2.0.5 → 2.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,16 +1,16 @@
1
- <form role="form" class="poll-voting-form">
2
- <!-- BEGIN poll.options -->
3
- <div class="poll-view-option {poll.optionType}" data-poll-option-id="{poll.options.id}">
4
- <label>
5
- <input type="{poll.optionType}" name="pollVoteSelection" value="{poll.options.id}">
6
- {poll.options.title}
7
- </label>
8
- </div>
9
- <!-- END poll.options -->
10
- </form>
11
-
12
- <!-- IF poll.settings.disallowVoteUpdate -->
13
- <div class="alert alert-warning" role="alert">
14
- [[poll:vote_is_final]]
15
- </div>
16
- <!-- ENDIF poll.settings.disallowVoteUpdate -->
1
+ <form role="form" class="poll-voting-form">
2
+ <!-- BEGIN poll.options -->
3
+ <div class="poll-view-option {poll.optionType}" data-poll-option-id="{poll.options.id}">
4
+ <label>
5
+ <input type="{poll.optionType}" name="pollVoteSelection" value="{poll.options.id}">
6
+ {poll.options.title}
7
+ </label>
8
+ </div>
9
+ <!-- END poll.options -->
10
+ </form>
11
+
12
+ <!-- IF poll.settings.disallowVoteUpdate -->
13
+ <div class="alert alert-warning" role="alert">
14
+ [[poll:vote_is_final]]
15
+ </div>
16
+ <!-- ENDIF poll.settings.disallowVoteUpdate -->
@@ -1,15 +1,15 @@
1
- 'use strict';
2
-
3
- const db = require.main.require('./src/database');
4
- const privileges = require.main.require('./src/privileges');
5
-
6
- module.exports = {
7
- name: 'Fix incorrectly given poll privilege',
8
- timestamp: Date.UTC(2020, 9, 29),
9
- method: async () => {
10
- const cids = await db.getSortedSetRange('categories:cid', 0, -1);
11
- await Promise.all(cids.map(async (cid) => {
12
- await privileges.categories.rescind(['poll:create'], cid, ['registered-users']);
13
- }));
14
- },
15
- };
1
+ 'use strict';
2
+
3
+ const db = require.main.require('./src/database');
4
+ const privileges = require.main.require('./src/privileges');
5
+
6
+ module.exports = {
7
+ name: 'Fix incorrectly given poll privilege',
8
+ timestamp: Date.UTC(2020, 9, 29),
9
+ method: async () => {
10
+ const cids = await db.getSortedSetRange('categories:cid', 0, -1);
11
+ await Promise.all(cids.map(async (cid) => {
12
+ await privileges.categories.rescind(['poll:create'], cid, ['registered-users']);
13
+ }));
14
+ },
15
+ };