<h2>{{ _("Diagnosis") }}</h2>
</div>
- <section id="test-call">
- <h3>{{ _("Test Call") }}</h3>
+ {% module TalkOngoingCalls() %}
- <ul class="list-unstyled">
- <li>
- <span class="glyphicon glyphicon-earphone text-success"></span>
- <a href="/call/991">991<span class="text-muted">@ipfire.org</span></a>
- - {{ _("Echo Test") }}
- </li>
-
- <li>
- <span class="glyphicon glyphicon-earphone text-success"></span>
- <a href="/call/992">992<span class="text-muted">@ipfire.org</span></a>
- - {{ _("A music playing service") }}
- </li>
- </ul>
- </section>
-
- {% if current_user.is_admin() %}
- {% module TalkOngoingCalls() %}
-
- <section id="lines">
- {% module TalkLines(show_account=True) %}
- </section>
- {% end %}
+ {% module TalkLines(show_account=True) %}
{% end block %}
class TalkDiagnosisHandler(BaseHandler):
@tornado.web.authenticated
def get(self):
+ # Access only allowed for admins
+ if not self.current_user.is_admin():
+ raise tornado.web.HTTPError(403)
+
return self.render("talk/diagnosis.html")