/** * @param int $postId * @return bool */ public function canModifyPost($postId) { $canModify = parent::canModifyPost($postId); if ($this->get('answered') && $this->get('post_first') == $postId) { $canModify = false; } return $canModify; }