Skip to content

Commit b824e69

Browse files
committed
Parse the stable scopes in the templates
1 parent 64f5bba commit b824e69

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

templates/components/scope.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,14 @@
1414
{% elif scope == "urn:mas:graphql:*" %}
1515
<li>{{ icon.info() }}<p>{{ _("mas.scope.edit_profile") }}</p></li>
1616
<li>{{ icon.computer() }}<p>{{ _("mas.scope.manage_sessions") }}</p></li>
17-
{% elif scope == "urn:matrix:org.matrix.msc2967.client:api:*" %}
17+
{% elif scope == "urn:matrix:client:api:*" or scope == "urn:matrix:org.matrix.msc2967.client:api:*" %}
1818
<li>{{ icon.chat() }}<p>{{ _("mas.scope.view_messages") }}</p></li>
1919
<li>{{ icon.send() }}<p>{{ _("mas.scope.send_messages") }}</p></li>
2020
{% elif scope == "urn:synapse:admin:*" %}
2121
<li>{{ icon.error_solid() }}<p>{{ _("mas.scope.synapse_admin") }}</p></li>
2222
{% elif scope == "urn:mas:admin" %}
2323
<li>{{ icon.error_solid() }}<p>{{ _("mas.scope.mas_admin") }}</p></li>
24-
{% elif scope is startingwith("urn:matrix:org.matrix.msc2967.client:device:") %}
24+
{% elif scope is startingwith("urn:matrix:client:device:") or scope is startingwith("urn:matrix:org.matrix.msc2967.client:device:") %}
2525
{# We hide this scope #}
2626
{% else %}
2727
<li>{{ icon.info() }}<p>{{ scope }}</p></li>

templates/pages/sso.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ <h1 class="title">Allow access to your account?</h1>
2323
</header>
2424

2525
<section class="consent-scope-list">
26-
{{ scope.list(scopes="openid urn:matrix:org.matrix.msc2967.client:api:*") }}
26+
{{ scope.list(scopes="openid urn:matrix:client:api:*") }}
2727
</section>
2828

2929
<section class="text-center cpd-text-secondary cpd-text-body-md-regular">

0 commit comments

Comments
 (0)