{% set can_vote = c.user and c.user != c.user.anonymous() and h.has_access(artifact, 'post')() %} {% set voted = artifact.user_voted(c.user) %}