环回ACL对用户扩展模型不起作用

时间:2019-07-16 14:12:29

标签: node.js mongodb loopbackjs acl access-control

在调试项目中的acl问题时,

sudo DEBUG=loopback:security:acl npm start

导致

  loopback:security:acl The following ACLs were searched:  +0ms
  loopback:security:acl ---Resolved--- +1ms  

但是我已经在Json文件中创建了ACL

"acls": [
    {
        "accessType": "*",
        "principalType": "ROLE",
        "principalId": "$everyone",
        "permission": "DENY"
    }
]

用户扩展模型会发生此问题。不适用于其他型号,例如支持....

0 个答案:

没有答案