Ver código fonte

no access with user acl

Ivan Asmer 3 anos atrás
pai
commit
7ca02c3b57
1 arquivos alterados com 1 adições e 1 exclusões
  1. 1 1
      index.js

+ 1 - 1
index.js

@@ -445,7 +445,7 @@ const mm = db => {
             populate(obj){ //place to check read permission
                 //console.log(obj)
                 if (!this.___permissionCan('read', obj.___permissions, obj)){
-                    throw new ReferenceError(`No Access To Entity ${this._id} of class ${this._class}`)
+                    throw new ReferenceError(`No Access To Entity ${this._id} of class ${this._class} for acl ${userACL}`)
                 }
                 super.populate(obj)
             }