From 430d3be87efe92d4a067d7e5a1b0ee1a1793deb1 Mon Sep 17 00:00:00 2001 From: Quentin Gliech Date: Fri, 13 Jun 2025 15:55:42 +0200 Subject: [PATCH] Parse the stable scopes in the templates --- templates/components/scope.html | 4 ++-- templates/pages/sso.html | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/templates/components/scope.html b/templates/components/scope.html index 2f0ae107c..8ea4faf9c 100644 --- a/templates/components/scope.html +++ b/templates/components/scope.html @@ -14,14 +14,14 @@ Please see LICENSE in the repository root for full details. {% elif scope == "urn:mas:graphql:*" %}
  • {{ icon.info() }}

    {{ _("mas.scope.edit_profile") }}

  • {{ icon.computer() }}

    {{ _("mas.scope.manage_sessions") }}

  • - {% elif scope == "urn:matrix:org.matrix.msc2967.client:api:*" %} + {% elif scope == "urn:matrix:client:api:*" or scope == "urn:matrix:org.matrix.msc2967.client:api:*" %}
  • {{ icon.chat() }}

    {{ _("mas.scope.view_messages") }}

  • {{ icon.send() }}

    {{ _("mas.scope.send_messages") }}

  • {% elif scope == "urn:synapse:admin:*" %}
  • {{ icon.error_solid() }}

    {{ _("mas.scope.synapse_admin") }}

  • {% elif scope == "urn:mas:admin" %}
  • {{ icon.error_solid() }}

    {{ _("mas.scope.mas_admin") }}

  • - {% elif scope is startingwith("urn:matrix:org.matrix.msc2967.client:device:") %} + {% elif scope is startingwith("urn:matrix:client:device:") or scope is startingwith("urn:matrix:org.matrix.msc2967.client:device:") %} {# We hide this scope #} {% else %}
  • {{ icon.info() }}

    {{ scope }}

  • diff --git a/templates/pages/sso.html b/templates/pages/sso.html index 5104dc594..37c6d2b90 100644 --- a/templates/pages/sso.html +++ b/templates/pages/sso.html @@ -23,7 +23,7 @@ Please see LICENSE in the repository root for full details.