Convert principalId to String
This commit is contained in:
parent
01f1716234
commit
aa63d7bf4b
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue