diff --git a/lib/models/acl.js b/lib/models/acl.js index 3663273e..ce6f936f 100644 --- a/lib/models/acl.js +++ b/lib/models/acl.js @@ -297,7 +297,7 @@ ACL.checkPermission = function checkPermission(principalType, principalId, model, property, accessType, callback) { if(principalId !== null && principalId !== undefined && (typeof principalId !== 'string') ) { - principlaId = principalId.toString(); + principalId = principalId.toString(); } property = property || ACL.ALL; var propertyQuery = (property === ACL.ALL) ? undefined : {inq: [property, ACL.ALL]};