nodebb-plugin-pdf-secure2 1.3.2 → 1.3.3
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.
- package/library.js +3 -1
- package/package.json +1 -1
package/library.js
CHANGED
|
@@ -232,7 +232,9 @@ plugin.filterMetaTags = async (hookData) => {
|
|
|
232
232
|
|
|
233
233
|
// Inject allowed categories into client-side config
|
|
234
234
|
plugin.filterConfig = async function (data) {
|
|
235
|
-
data
|
|
235
|
+
if (data && data.config) {
|
|
236
|
+
data.config.pdfSecureCategories = pluginSettings.allowedCategories || '';
|
|
237
|
+
}
|
|
236
238
|
return data;
|
|
237
239
|
};
|
|
238
240
|
|
package/package.json
CHANGED