Skip to content
This repository was archived by the owner on May 22, 2025. It is now read-only.

Commit aaaa4a0

Browse files
committed
Xenforo actually gives us an array, not a weird bitmasked thing, we need to do a php join
1 parent 7ccf9b6 commit aaaa4a0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Api/Controller/Linking.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,8 +51,9 @@ public function actionGet(ParameterBag $params)
5151
}
5252

5353
$user = $linked_account->User;
54+
$joined_groups = join(",", $user->secondary_group_ids);
5455
$group = $group_finder
55-
->whereSql("FIND_IN_SET(group_id, $user->secondary_group_ids) AND group_id NOT IN (71, 66, 14)")
56+
->whereSql("user_group_id IN ($joined_groups) AND user_group_id NOT IN (71, 66, 14)")
5657
->order('display_style_priority', 'DESC')->fetchOne();
5758

5859
return $this->apiSuccess([

0 commit comments

Comments
 (0)