mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-10-26 08:36:12 +01:00
lint: fix )
This commit is contained in:
@@ -24,7 +24,7 @@ Plugins.toggleActive = async function (socket, plugin_id) {
|
||||
Plugins.toggleInstall = async function (socket, data) {
|
||||
const isInstalled = await plugins.isInstalled(data.id);
|
||||
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]]');
|
||||
}
|
||||
postsCache.reset();
|
||||
|
||||
Reference in New Issue
Block a user