{% extends "layout/basic.html" %}
{% import "components/user.html" as user with context %}
{% import "components/form.html" as form with context %}
{% block content %}
{% if handler.user.hasPerm(perm.PERM_EDIT_DOMAIN) or qdoc.assignee == handler.user._id or handler.user.own(qdoc) %}
{{ _('Edit Question') }}
{% endif %}
{% if handler.user.hasPerm(perm.PERM_EDIT_DOMAIN) and not qdoc.assignee or handler.user.hasPriv(PRIV.PRIV_EDIT_SYSTEM) %}
{% endif %}
{% if handler.user.hasPerm(perm.PERM_EDIT_DOMAIN) or qdoc.assignee == handler.user._id %}