XF 2.0 Ip ControllerPlugin

kick

Well-known member
How can I add a condition to users with IDs 1 and 2. This section of code does not work
PHP:
$user = $this->em()->find('XF:User', $this->filter('user_id', 'uint'));
if($user['user_id'] == 1)
{
    return $this->error(\XF::phrase('no_ip_information_available'));
}
 
Top Bottom