Skip to content

Node.js based forum software built for the modern web

fix: add starterPlan check

Barış Soner Uşaklı40a5314e642e
diff --git a/src/socket.io/admin/plugins.js b/src/socket.io/admin/plugins.js
index d926dfa0cf..c673d448b3 100644
--- a/src/socket.io/admin/plugins.js
+++ b/src/socket.io/admin/plugins.js
@@ -23,7 +23,8 @@ Plugins.toggleActive = async function (socket, plugin_id) {
Plugins.toggleInstall = async function (socket, data) {
const isInstalled = await plugins.isInstalled(data.id);
- if (nconf.get('acpPluginInstallDisabled') && !isInstalled) {
+ const isStarterPlan = nconf.get('saas_plan') === 'starter';
+ if ((isStarterPlan || nconf.get('acpPluginInstallDisabled') && !isInstalled) {
throw new Error('[[error:plugin-installation-via-acp-disabled]]');
}
postsCache.reset();