Strongloop 偷偷地向 acl 对象添加 属性 字段

Strongloop sneakily added property field to acl object

https://docs.strongloop.com/display/public/LB/Define+access+controls

在上面的教程中,slc loopback:acl命令是如何将属性添加到review的acl对象中的?

  {
      "accessType": "EXECUTE",
      "principalType": "ROLE",
      "principalId": "$authenticated",
      "permission": "ALLOW",
      "property": "create" //how did this get added ?
    },

当我自己运行命令时,没有添加property:create。如果我尝试将 属性 重命名为 "create_review",并编辑远程挂钩 而不是

Review.beforeRemote('create', function(context, user, next) {

Review.beforeRemote('create_review', function(context, user, next) {

我收到未经授权的错误 401。

除了创造之外还有什么属性?为什么我们在 acl 中需要 属性?是不是要加remote hooks?

访问类型及其属性在 https://docs.strongloop.com/display/public/LB/Controlling+data+access

中定义

除了create,还有find、findById、upsert等

不是model的属性,是acl的属性