Add records ownership to supervisors
Posted: 2022-04-25 22:47
Hi,
I have an app that sends a json to a php mysql appgini server via post, lets say is employees data.
They have a supervisor asigned. I used appgini to model all and data coming from employees is viewable and supervisor table is also there.
Now i need to supervisors only view data asigned to them. The data posted from employees may cone with the field data.supervisorid that may match supervisor.supervisorid.
How do i add ownership to the data inyected via post to respective fields when a x supervisor enters to appgini app?
Any help is welcome!
A3
I have an app that sends a json to a php mysql appgini server via post, lets say is employees data.
They have a supervisor asigned. I used appgini to model all and data coming from employees is viewable and supervisor table is also there.
Now i need to supervisors only view data asigned to them. The data posted from employees may cone with the field data.supervisorid that may match supervisor.supervisorid.
How do i add ownership to the data inyected via post to respective fields when a x supervisor enters to appgini app?
Any help is welcome!
A3