Discord Fixed Multiple Groups

Rayman

New Member
Hi,

When a user is in two usergroups, and each usergroup is in a different role; the user is placed into only one of the roles, not both.

I would appreciate a fix to this as soon as possible; I have just purchased the addon and everything else works smoothly.
 

Rayman

New Member
After abit of troubleshooting, a friend has provided the fix below for Helper.php - I'd appreciate it if you could push this as an update to your product.
Code:
foreach($userGroups as $userGroup)
            {
               $ids = $this->getDiscordRolesByGroup($userGroup);
               if (is_array($ids))
               {
                   $roleIds = array_merge($roleIds, $ids);
               }
               else
               {
                   $roleIds[] = $ids;
               }
            }
 

NixFifty

Administrator
Staff member
I'll look in to this and merge it in to the add-on. Thanks!

Apologies for the delayed response, I've been out of town for a few days.
 
Top