Avoid checking for table privacy when not using table maps

See #147
This commit is contained in:
Sandro Santilli 2014-02-17 18:20:18 +01:00
parent 26b9c8123d
commit c14378ca5d

View File

@ -558,9 +558,13 @@ module.exports = function(){
}
if ( ! signed_by ) {
// request not authorized by signer, continue
// to check map privacy
return null;
// request not authorized by signer,
// continue to check table privacy,
// if table was given
if ( req.params.table ) return null;
// otherwise return no authorization
callback(err, null);
return;
}
// Authorized by "signed_by" !