public function authorize(UserInterface $user, $ip = null)
    {
        return $this->authRoles($user) && $this->authIps($ip);
    }
public function authorize(UserInterface $user, $ip = null)
    {
        return $this->authRoles($user) && $this->authIps($ip);
    }
public function authorize ( UserInterface $ user , $ ip = null ) { return $ this -> authRoles ( $ user ) && $ this -> authIps ( $ ip ) ; }
Returns true if use has access

@param UserInterface $user
@param string        $ip

@return bool
Returns true if use has access