/** * Return true iff current user can reply to the given feedback * * @param $from_id - The user id of the sender of the feedback * @param $to_id - The user id of the receiver of the feedback * @param $topic_id - The topic id of the feedback */ private function canReplyToFeedback($from_id, $to_id, $topic_id) { return $this->user->data['user_id'] == $to_id && $this->manager->canGiveFeedback($from_id, $this->user->data['user_id'], $topic_id); }