Need to allow add Single Role for each User

I need to change some functionality in suiteCRM to allow assign a single role for each user , currently admin can assign multiple role to users, can anyone give some idea how to archive this by code and setting.

Thanks in advanced

That will require some coding for sure.

The option that comes to my mind is to create a logic hook that prevents saving new relationships to roles from users or it deletes previous ones and adds new one only.

Here is a sample on relationships from logichooks:



1 Like