{# Allow the user to cancel the reservation if they have that priviledge. #} {% if not reservation.missed and not reservation.cancelled %} {% if reservation.user.id == user.id and reservation.has_not_ended or user.is_staff %} {% endif %} {% endif %}