theconductor
05/23/2024, 6:55 PMtheconductor
05/23/2024, 6:57 PMdefinition user {}
definition folder {
relation reader: user
permission read = reader
}
definition document {
relation parent_folder: folder
relation reader: user
/**
* read defines whether a user can read the document
*/
permission read = reader + parent_folder->read
}
In this case, for the very last permission, why was it better to do parent_folder->read
instead of parent_folder->reader
?theconductor
05/23/2024, 6:58 PMJoey
05/23/2024, 7:07 PMread
to reflect two rolesJoey
05/23/2024, 7:07 PMJoey
05/23/2024, 7:07 PMpermission read = reader
Joey
05/23/2024, 7:07 PMtheconductor
05/23/2024, 8:06 PMJoey
05/23/2024, 8:07 PMJoey
05/23/2024, 8:07 PMJoey
05/23/2024, 8:07 PMread = reader
and alias over to reader