public function canView(GroupableInterface $media, TokenInterface $token): bool
    {
        $user = $token->getUser();
        if (0 == count($media->getGroups())) {
            return true;
        }

        return parent::canView($media, $token);
    }
public function canView(GroupableInterface $media, TokenInterface $token): bool
    {
        $user = $token->getUser();
        if (0 == count($media->getGroups())) {
            return true;
        }

        return parent::canView($media, $token);
    }
public function canView ( GroupableInterface $ media , TokenInterface $ token ) : bool { $ user = $ token -> getUser ( ) ; if ( 0 == count ( $ media -> getGroups ( ) ) ) { return true ; } return parent :: canView ( $ media , $ token ) ; }
Override view handler, if this is not grouped allow access.

@param GroupableInterface $media The media to vote on.
@param TokenInterface     $token The token to vote on.

@return bool
Override view handler if this is not grouped allow access .