I have 3 roles: superuser, poweruser and user. I have a "data" table and functions data_select and data_insert.
Now I would like to determine that only the superuser can access the tabular "data". Poweruser and the user cannot directly access tabular "data", but only through functions.
The user can only run the data_select function, poweruser can run both data_select and data_insert.
So, I can create alice, bob, ... users and inherit their user privileges or poweuser.
Is this really achievable? I fight this on the second day and will not go anywhere.
Thank you for your time.
Petr cezar
source share