lint: fix )

This commit is contained in:
Barış Soner Uşaklı
2025-03-03 09:24:11 -05:00
parent 40a5314e64
commit 9549f1fa93

View File

@@ -24,7 +24,7 @@ Plugins.toggleActive = async function (socket, plugin_id) {
Plugins.toggleInstall = async function (socket, data) { Plugins.toggleInstall = async function (socket, data) {
const isInstalled = await plugins.isInstalled(data.id); const isInstalled = await plugins.isInstalled(data.id);
const isStarterPlan = nconf.get('saas_plan') === 'starter'; const isStarterPlan = nconf.get('saas_plan') === 'starter';
if ((isStarterPlan || nconf.get('acpPluginInstallDisabled') && !isInstalled) { if ((isStarterPlan || nconf.get('acpPluginInstallDisabled')) && !isInstalled) {
throw new Error('[[error:plugin-installation-via-acp-disabled]]'); throw new Error('[[error:plugin-installation-via-acp-disabled]]');
} }
postsCache.reset(); postsCache.reset();