Reaction controller plugin doesn't check canView on the ReactionContent entity

Status
This content is read-only, or is not open for further replies.

Kirby

Guest
\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

Continue reading...
 
Liked by:
Status
This content is read-only, or is not open for further replies.

Latest threads

Forum statistics

Threads
66,447
Messages
98,954
Members
63,625
Latest member
meksikan
Top Bottom