2014-12-05, 01:28 PM
hi all, i'm using this code to check if a user can view a forum
$uid is the users's id
49 is forum id
it is working right except when the gruop of the user ha no access to the forum but some admin gave the right to view the forum with custom user permission plugin, in this case $canview is 0 even if the user can view the forum.
how can i get the right permissions ?
thanks.
$uid is the users's id
49 is forum id
$fpermissions = forum_permissions(49, $uid);
$canview = $fpermissions['canview'];
it is working right except when the gruop of the user ha no access to the forum but some admin gave the right to view the forum with custom user permission plugin, in this case $canview is 0 even if the user can view the forum.
how can i get the right permissions ?
thanks.