Head's Up! These forums are read-only. All users and content have migrated. Please join us at community.neo4j.com.
08-05-2020 05:14 AM
Hi community,
we're just trying to get the roles and permissions from the 4.1 up and running. One question therefore - is it possible to have some kind of conditional permissions for roles? For example, some information stored in a node is checked from an user and gets the status "approved". These nodes shouldn't get updated anymore from any user. Would be great if anyone could help us.
Kindly,
Marc
08-05-2020 02:00 PM
You could use label based access roles. For example instead of property status you can use a label "Unapproved" and "Approved". Give write permissions for UnApproved label and for the role and Read permissions for Approved label for the same role.
So, when you want to change the status, remove Unapproved label and add Approved label. The node becomes readonly automatically.
08-05-2020 02:16 PM
Hi anthapu,
thank you very much! Could be a solution. We'll discuss this one, as the status of an approval is the easiest use-case for our permission checks.
Kindly,
Marc
All the sessions of the conference are now available online