Forum OpenACS Development: Re: convert person to user

Collapse
3: Re: convert person to user (response to 2)
Posted by Keith Paskett on
I have a package that, among other things, promotes a person to a user and demotes a user to a person.

I could share those two procs.

Collapse
5: Re: convert person to user (response to 3)
Posted by Gustaf Neumann on
having such two procs in the OpenACS API seems to be a good idea to me. Keith, can you open a ticket in the bug tracker and submit it there?
Collapse
6: Re: convert person to user (response to 5)
Posted by Gustaf Neumann on
Keith has provided 2 such procs, that i've added to oacs-5-10.

https://cvs.openacs.org/changelog/OpenACS?cs=oacs-5-10%3Agustafn%3A20210213173106

While promoting is straightforward, demoting has certain limitations in case this user has created several objects before (check to FK relations of users). Therefore, demoting is rather a low-level helper function and not intended as a replacement of "acs_user::change_state" which can be used to deactivate users in various ways.