strongloop/loopback — pull request #246 by haio (2014-04-28 13:45:03+00:00)
Title: Convert principalId to String

When principalId is a object, for example, ObjectId in MongoDB, ACL.checkPermission always load empty dynACLs, this add can fix it. Also make tests passing described in issue #245.