PDA

View Full Version : UGP for specific usergroup


paradoxG(r)eek
03-22-2017, 10:26 AM
Hi all,

The code below checks the permissions of the usergroup(s) for the active user:

if(!($permissions['articles'] & $vbulletin->bf_ugp['articles']['canpost'])){
print_no_permission();
}


What if I want to check the same permission for a specific usergroup (not for the active user)? eg for usergroupid=6

Thank you
Chris