Skip to content

Commit

Permalink
Update rexshop.php
Browse files Browse the repository at this point in the history
  • Loading branch information
srexi authored May 5, 2022
1 parent fccd8db commit e844c3b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion inc/plugins/rexshop.php
Original file line number Diff line number Diff line change
Expand Up @@ -1243,7 +1243,7 @@ function rexshop_fetch_products($acp = false)
}

if (mb_strtolower($addon['name']) === 'onlyusergroups' || mb_strtolower($addon['name']) === 'onlyusergroup') {
if (! in_array((int) $mybb->user['usergroup'], $usergroupIds) {
if (! in_array((int) $mybb->user['usergroup'], $usergroupIds)) {
continue 2;
}
} else if (mb_strtolower($addon['name']) === 'excludeusergroups' || mb_strtolower($addon['name']) === 'excludeusergroup') {
Expand Down

0 comments on commit e844c3b

Please sign in to comment.