Code:
if ($permissions['serverstuff'] & 1)
// isserverstaff
if ($permissions['serverstuff'] & 2)
// isbetatester
You didn't say exactly where you added your xml, but I think you should be able to do something like this code (which obviously checks forumpermissions):
Code:
$permissions['forumpermissions'] & $vbulletin->bf_ugp_forumpermissions['canview']
by replacing 'bf_ugp_forumpermissions' with whatever is appropriate for your bitfields, that way you're not hard-coding the values.
Maybe this article will help:
https://vborg.vbsupport.ru/showthread.php?t=166940