simonfl3tcher
06/15/2023, 2:06 PMnum > 25
. But I want that 25 to come from a relation i.e. when I store an object, I want to set that number instead of hard coding it for every check. Is this possible at all?simonfl3tcher
06/15/2023, 2:07 PMorganization:simonsplaygroundorg#numberoftasks:25
simonfl3tcher
06/15/2023, 2:09 PMJoey
06/15/2023, 2:35 PMJoey
06/15/2023, 2:36 PMorganization:simonsplaygroundorg#somerelation@someobject:someobjectid[somecaveat:{"number_of_tasks": 25}]
simonfl3tcher
06/15/2023, 2:59 PMsimonfl3tcher
06/15/2023, 2:59 PMsimonfl3tcher
06/15/2023, 3:00 PMJoey
06/15/2023, 3:01 PMJoey
06/15/2023, 3:01 PMJoey
06/15/2023, 3:01 PMJoey
06/15/2023, 3:01 PMJoey
06/15/2023, 3:01 PMrelation somerelation: someobject with somecaveat
simonfl3tcher
06/15/2023, 3:01 PMJoey
06/15/2023, 3:02 PMJoey
06/15/2023, 3:02 PMcaveat somecaveat(number_of_tasks: int) {
}
simonfl3tcher
06/15/2023, 3:02 PMJoey
06/15/2023, 3:02 PMJoey
06/15/2023, 3:03 PMcaveat somecaveat(number_of_tasks: int, found_number_of_tasks: ) {
number_of_tasks >= found_number_of_tasks
}
Joey
06/15/2023, 3:03 PMfound_number_of_tasks
in the Check context was smaller or equal to the number_of_tasks
on the relationshipsimonfl3tcher
06/15/2023, 3:03 PMsimonfl3tcher
06/15/2023, 3:03 PMsimonfl3tcher
06/15/2023, 3:45 PMJoey
06/15/2023, 4:22 PMJoey
06/15/2023, 4:22 PMsimonfl3tcher
06/15/2023, 4:26 PMsimonfl3tcher
06/15/2023, 4:28 PMdefinition app {
relation organization: organization
relation reader: user
relation editor: user
permission edit = editor
permission view = reader + edit + organization->members
}
How can I add a relation that ensures that the user is part of the organization? I was app:appname#edit@user:user123
which works but it doesn't enforce that the user is part of the org.Joey
06/15/2023, 5:32 PMJoey
06/15/2023, 5:32 PMJoey
06/15/2023, 5:32 PM