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

        return in_array($permission, $this->permissions, true);
    }
public function hasPermission($permission)
    {
        if ($this->user() === null) {
            return null;
        }

        return in_array($permission, $this->permissions, true);
    }
public function hasPermission ( $ permission ) { if ( $ this -> user ( ) === null ) { return null ; } return in_array ( $ permission , $ this -> permissions , true ) ; }
Check if authenticated user has permission

@param string $permission

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