src/ViKon/Auth/Guard.php
public function hasGroup($group)
    {
        if ($this->user() === null) {
            return null;
        }

        return in_array($group, $this->groups, true);
    }
public function hasGroup($group)
    {
        if ($this->user() === null) {
            return null;
        }

        return in_array($group, $this->groups, true);
    }
public function hasGroup ( $ group ) { if ( $ this -> user ( ) === null ) { return null ; } return in_array ( $ group , $ this -> groups , true ) ; }
Check if authenticate user has group

@param string $group

@return bool|null return NULL if user is not authenticated
Check if authenticate user has group