function serviceGetForumPermission($iMemberId, $iForumId)
{
$iMemberId = (int) $iMemberId;
$iForumId = (int) $iForumId;
$aFalse = array('admin' => 0, 'read' => 0, 'post' => 0);
if (!($aForum = $this->_oDb->getForumById($iForumId))) {
return $aFalse;
}
if (!($aDataEntry = $this->_oDb->getEntryById($aForum['entry_id']))) {
return $aFalse;
}
$aTrue = array('admin' => $aDataEntry[$this->_oDb->_sFieldAuthorId] == $iMemberId || $this->isAdmin() ? 1 : 0, 'read' => $this->isAllowedReadForum($aDataEntry, $iMemberId) ? 1 : 0, 'post' => $this->isAllowedPostInForum($aDataEntry, $iMemberId) ? 1 : 0);
return $aTrue;
}