This commit is contained in:
haio 2014-04-29 20:10:44 +08:00
parent f44d737e7e
commit eae86b64f4
1 changed files with 1 additions and 1 deletions

View File

@ -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]};