don't require admins to explicitly enable uploads

pull/1/head
ansuz 8 years ago
parent dfad622b76
commit cb7efeebe1

@ -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);
}

Loading…
Cancel
Save