policy.subject_duplicate
Grant names the same caller twice.
Area 9, Policy; not declinable; the next step is usually the agent's.
type Handle = Text { max_length: 40}entity User { id: Uuid handle: Handle { unique: true }}principal { user: { subject: User.handle }}entity Note { id: Uuid owner_id: User.id { on_delete: OnDelete.cascade } policy: { read: [owner_id, Access.authenticated, owner_id] }}
error owner_id is listed twice
--> main.jadpo:25:48
|25 | read: [owner_id, Access.authenticated, owner_id] | ^^^^^^^^ listed again
- reason
- A grant list means "any of these", so naming someone twice adds nothing and hides which line was meant.
- next
- Remove the second
owner_id(agent) - rule
- policy.
subject_ duplicate - help
- https://jadpo.
dev/docs/errors/policy. subject_ duplicate
Markdown for agents: /docs/errors/policy.subject_duplicate.md.Built from Jadpo main at aee2e8f.