Hello!
If I create a new user, I can add some row level policies. Very important e.g.: where = “{E}.CreatedByUserID.id = :current_user_id” — so every user can only see his own entities.
Easy.
If I have a cascade of users, and one user might create another user, I want to guarantee, that my row level role is set to the newest user, of course.
How can this be done automatically, so that the creation of a new user cannot be done without this (for my purpose very important) issue?
Do I have to add an instance automatically when storing a new user entry, e.g. in an onBeforeCommitChanges() handler?
Or is there a better way?
Thanks in advance,
br
HP