Do we have inheritance in Ory permission language....
# talk-keto
e
Do we have inheritance in Ory permission language. e.g.
class Interactable implements Namespace {
related: {
owners: Player []
parents: Plot []
}
permits = {
interact: (ctx: Context): boolean =>
this.related.owners.includes(ctx.subject) ||
this.related.parents.traverse((p) => p.residents.includes(ctx.subject))              // residents of parents plot can interact with this object
}
}
class Chest implements Interactable {       // NOTE: not sure whether support inheritance or not.
permits = {
interact: (ctx: Context): boolean =>
this.related.owners.includes(ctx.subject) ||
this.related.owners.traverse((p) => p.closefriends.includes(ctx.subject))         // only owner and close friends can open the chest.
}
}
s
Unfortunately not right now.