if (!$permissions[canview] or !$permissions[canvote]) {
if (!$permissions[canview] or !$permissions[canvote] or $bbuserinfo['posts']<XX) {