FIX: Allow poll feature to be disabled in discourse-markdown (#15025)
This commit is contained in:
parent
97b27a7426
commit
a9d5921901
plugins/poll/assets/javascripts/lib/discourse-markdown
|
@ -262,7 +262,9 @@ const rule = {
|
|||
|
||||
function newApiInit(helper) {
|
||||
helper.registerOptions((opts, siteSettings) => {
|
||||
opts.features.poll = !!siteSettings.poll_enabled;
|
||||
if (!siteSettings.poll_enabled) {
|
||||
opts.features.poll = false;
|
||||
}
|
||||
opts.pollMaximumOptions = siteSettings.poll_maximum_options;
|
||||
});
|
||||
|
||||
|
|
Loading…
Reference in New Issue