From cb7efeebe19943315b0638a496ed2c3434cbad69 Mon Sep 17 00:00:00 2001 From: ansuz Date: Wed, 5 Jul 2017 11:54:27 +0200 Subject: [PATCH] don't require admins to explicitly enable uploads --- rpc.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/rpc.js b/rpc.js index 83f2010a2..5b5d058b9 100644 --- a/rpc.js +++ b/rpc.js @@ -1088,8 +1088,8 @@ RPC.create = function (config /*:typeof(ConfigType)*/, cb /*:(?Error, ?Function) return void handleMessage(false); } - // restrict upload capability unless explicitly disabled - if (config.restrictUploads === false) { + // allow unrestricted uploads unless restrictUploads is true + if (config.restrictUploads !== true) { return void handleMessage(true); }