跳转到内容

作用域模型

Permission 由 resourceactionscope 组成。角色授权时可以带 scope_anchor_group_id 作为锚点。

  • self:资源 owner 是当前 actor member。
  • group:资源所在 group 等于授权锚点。
  • group_tree:资源所在 group 是锚点或锚点的子树。
  • space:资源在同一个 Space 内。
  • global:保留字段,v1.0 禁用。

group_tree 使用安全前缀规则:

target_path = anchor_path OR target_path starts with anchor_path + "."