Skip to content

Commit

Permalink
[K6.3] "Show Images for Guests = No" block also the smleys #7856 #9756
Browse files Browse the repository at this point in the history
  • Loading branch information
xillibit committed Nov 2, 2024
1 parent 8610d0f commit c796e21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libraries/kunena/src/BBCode/KunenaBBCode.php
Original file line number Diff line number Diff line change
Expand Up @@ -2703,7 +2703,7 @@ public function DoImage($bbcode, $action, $name, $default, $params, $content)
->set('alt', \count($matches) > 0 ? $altText : 0)
->set('canLink', $bbcode->autoLink_disable == 0);

if (Factory::getApplication()->getIdentity()->id == 0 && $this->config->showImgForGuest == 0) {
if (Factory::getApplication()->getIdentity()->id == 0 && $this->config->showImgForGuest == 0 && !preg_match('@media\/kunena\/emoticons@', $fileurl)) {
// Hide between content from non registered users.
return (string) $layout->set('title', Text::_('COM_KUNENA_SHOWIMGFORGUEST_HIDEIMG'))->setLayout('unauthorised');
}
Expand Down

0 comments on commit c796e21

Please sign in to comment.