Skip to content

Commit 3902eb0

Browse files
committed
better fix for 'originalUrl' issue
1 parent 3ca40da commit 3902eb0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/acl.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -585,7 +585,7 @@ Acl.prototype.middleware = function(numPathComponents, userId, actions){
585585
return;
586586
}
587587

588-
url = req.originalUrl.split('?')[0];
588+
url = (req.route ? req.url : req.originalUrl).split('?')[0];
589589
if(!numPathComponents){
590590
resource = url;
591591
}else{

0 commit comments

Comments
 (0)