Change ownership

If you're a new user of AppGini, feel free to ask general usage questions, or look for answers here.
Post Reply
arcanebits
Veteran Member
Posts: 71
Joined: 2018-12-10 21:52

Change ownership

Post by arcanebits » 2022-04-28 21:14

Hi again
I do use hooks to update some files that are related with the current user, it works nicely, now i need also to change ownership of those same records to the user, is thera a command line to do so in the php hook?
a3

User avatar
jsetzer
AppGini Super Hero
AppGini Super Hero
Posts: 1389
Joined: 2018-07-06 06:03
Location: Kiel, Germany
Contact:

Re: Change ownership

Post by jsetzer » 2022-04-28 21:18

Code: Select all

set_record_owner('TABLENAME', 'PK', 'MEMBERID_OF_NEW_OWNER);
Kind regards,
<js />

My AppGini Blog:
https://appgini.bizzworxx.de/blog

arcanebits
Veteran Member
Posts: 71
Joined: 2018-12-10 21:52

Re: Change ownership

Post by arcanebits » 2022-04-28 21:33

Wow SOLID GOLD!
Also for more info, i left here a link where you explained it in detail
viewtopic.php?t=3090

thanks!
a3

Post Reply