diff --git a/lib/application.js b/lib/application.js index 57ae348a..7bce0e14 100644 --- a/lib/application.js +++ b/lib/application.js @@ -344,16 +344,11 @@ app.enableAuth = function() { } if(Model.checkAccess) { - // Pause the request before checking access - // See https://github.com/strongloop/loopback-storage-service/issues/7 - req.pause(); Model.checkAccess( req.accessToken, modelId, method, function(err, allowed) { - // Emit any cached data events that fired while checking access. - req.resume(); if(err) { console.log(err); next(err);