Convert principalId to String

This commit is contained in:
haio 2014-04-28 21:36:44 +08:00
parent 01f1716234
commit aa63d7bf4b
1 changed files with 1 additions and 0 deletions

View File

@ -296,6 +296,7 @@ ACL.getStaticACLs = function getStaticACLs(model, property) {
ACL.checkPermission = function checkPermission(principalType, principalId,
model, property, accessType,
callback) {
principalId = principalId.toString();
property = property || ACL.ALL;
var propertyQuery = (property === ACL.ALL) ? undefined : {inq: [property, ACL.ALL]};
accessType = accessType || ACL.ALL;