Pārlūkot izejas kodu

no access with user acl

Ivan Asmer 3 gadi atpakaļ
vecāks
revīzija
7ca02c3b57
1 mainītis faili ar 1 papildinājumiem un 1 dzēšanām
  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)
             }