Skip to content

Commit

Permalink
update log function name
Browse files Browse the repository at this point in the history
  • Loading branch information
albertosouza committed Mar 28, 2016
1 parent 48a5d30 commit 304c50d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/index.js
Expand Up @@ -252,7 +252,7 @@ ACL.prototype.canMiddleware = function canMiddleware (req, res, callback){

if (!acl.canStatic(res.locals.permission, req.userRoleNames)) {
// cant
acl.logMiddlewareFirbiddenRequest(req, res);
acl.logMiddlewareForbiddenRequest(req, res);
return res.forbidden();
}

Expand All @@ -261,7 +261,7 @@ ACL.prototype.canMiddleware = function canMiddleware (req, res, callback){
});
};

ACL.prototype.logMiddlewareFirbiddenRequest = function logMiddlewareFirbiddenRequest(req, res) {
ACL.prototype.logMiddlewareForbiddenRequest = function logMiddlewareForbiddenRequest(req, res) {
if (!req.user) {
this.app.log.info('ACL:canMiddleware: forbidden for unAuthenticated user:', res.locals.permission);
} else {
Expand Down

0 comments on commit 304c50d

Please sign in to comment.