We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error from 18:88 to 18:90: expected ")", got "||" 16 | view: (ctx: Context): boolean => 17 | this.related.organization.traverse((o) => o.related.manager.includes(ctx.subject) || o.related.member.includes(ctx.subject)), | ^~ 18 | }
Try parsing
import { Namespace, Context } from "@ory/permission-namespace-types" class Organization implements Namespace { related: { member: Member[] manager: Member[] } } class Member implements Namespace { related: { organization: Organization[] } permits = { view: (ctx: Context): boolean => this.related.organization.traverse((o) => o.related.manager.includes(ctx.subject) || o.related.member.includes(ctx.subject)), } }
Workaround:
import { Namespace, Context } from "@ory/permission-namespace-types" class Organization implements Namespace { related: { member: Member[] manager: Member[] } } class Member implements Namespace { related: { organization: Organization[] } permits = { view: (ctx: Context): boolean => this.related.organization.traverse((o) => o.related.manager.includes(ctx.subject)) || this.related.organization.traverse((o) => o.related.member.includes(ctx.subject)), } }
No response
network
Ory Network
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Preflight checklist
Describe the bug
Reproducing the bug
Try parsing
Workaround:
Relevant log output
No response
Relevant configuration
No response
Version
network
On which operating system are you observing this issue?
Ory Network
In which environment are you deploying?
Ory Network
Additional Context
No response
The text was updated successfully, but these errors were encountered: