<?php
namespace Custom\XF\Pub\Controller;
use XF;
use XF\Mvc\ParameterBag;
class ApprovalQueue extends XFCP_ApprovalQueue
{
protected function preDispatchController($action, ParameterBag $params)
{
if (!XF::visitor()->is_moderator)
{
try
{
parent::preDispatchController($action, $params);
}
catch (XF\Mvc\Reply\Exception $e) {}
}
}
}