admin管理员组文章数量:1314252
I've created following OpenFGA model:
model
schema 1.1
type user
type relation
relations
define actor_relation: [user]
type relation_type
relations
define type: [relation]
type entity_type
relations
define can_read_relation_type: [relation_type]
define can_read_relation: type from can_read_relation_type
type entity
relations
define subject_relation: [relation]
define defines: [entity_type]
define can_read_relation: subject_relation and can_read_relation from defines
define can_read: [user] or actor_relation from can_read_relation
But it is not valid because of the last line where "can_read_relation" is not allowed in combination with "from" because "can_read_relation" is not a direct relation. How can I fix this?
本文标签: open fgaOpenFGA Relation used inside from allows only direct relationStack Overflow
版权声明:本文标题:open fga - OpenFGA: Relation used inside from allows only direct relation - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1741896334a2403596.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论