Quote:
Originally Posted by ssslippy
Ok I figured out the bug I was having, Turning on and off usergroup permission does nothing it always checks the usergroup.
|
Yeah I found out what I missed. Thanks for the catch mate.
This code here:
PHP Code:
$usergroups_enable = $vbulletin->options['wow_usergroups_enable'];
$groupnos = str_replace(" ", "", $vbulletin->options['wow_usergroup_numbers']);
if ($groupnos AND !in_array($vbulletin->userinfo['usergroupid'],explode(",",$groupnos ))) {
print_no_permission();
}
Should be...
PHP Code:
$usergroups_enable = $vbulletin->options['wow_usergroups_enable'];
$groupnos = str_replace(" ", "", $vbulletin->options['wow_usergroup_numbers']);
if ($usergroups_enable) {
if ($groupnos AND !in_array($vbulletin->userinfo['usergroupid'],explode(",",$groupnos ))) {
print_no_permission();
}
}
I'll fix that in the next version. I also want to add a few adjustments. If it bothers you, you can edit that piece in the plugin for now.