Hello,
I was trying to override the permissions of the usergroup I created a plugin on the hook global_setup_complete
PHP Code:
if($vbulletin->userinfo['usergroupid'] == '6'){
$vbulletin->bf_ugp_vbulletin['canview'] = true;
$vbulletin->bf_ugp_vbulletin['canviewthreads'] = true;
$vbulletin->bf_ugp_vbulletin['canviewothers'] = true;
$vbulletin->bf_wolpermissions_vbulletin['canwhosonline'] = true;
$vbulletin->bf_genericpermissions_vbulletin['canviewmembers'] = true;
$vbulletin->bf_albumpermissions_vbulletin['canviewalbum'] = true;
}
This was just a test,I disabled the rights for admins,but it didn't overwrite them.I think the variables I am using are not correct,what are the correct ones?
Thank you