[RSS Feed/News] Reaction controller plugin doesn't check canView on the ReactionContent entity

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
\XF\ControllerPlugin\Reaction::actionReactions

PHP:

Code:
$reactionsFinder = $reactionRepo->findContentReactions($contentType, $contentId, $reactionId)
    ->limitByPage($page, $perPage, 1);

$reactions = $reactionsFinder->fetch();

if (!count($reactions))
{
    return $this->message(\XF::phrase('no_one_has_reacted_to_this_content_yet'));
}

$hasNext = count($reactions) > $perPage;
$reactions = $reactions->slice(0, $perPage);

$tabSummary = $reactionRepo->getContentTabSummary($contentType...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom