Support Forum
Hi,
I'm working on some custom API coding and have things working as intended.
However, upon examining the database, I see in the sfmemberships table that my test user now belongs to 2 usergroups.
The newest group being the one my custom programming just added them to.
And the original group which is defined as "No Forum Access"
When I login and view the forum on this user I am not seeing anything.
Should I be removing this usergroup assignment in this case?
the difference is quite simple... if a user has a membership, and you add another membership (using the api vice direct db queries), if the single membership option is checked, all existing memberships are removed before the new one is added...
sorry, check what? whether you have the single membership option check in your admin or not??? why would you need to check your site admin setting? its forum wide, not user option... but, yes, you can query for the option if really needed.. something like this:
$sfmemberopts = sp_get_option('sfmemberopts');
$single = $sfmemberopts['sfsinglemembership'];
then $single contains the state of the option...
Visit Cruise Talk Central and Mr Papa's World
1 Guest(s)