]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/oauth2_authorized_applications/_application.html.erb
Highlight moderator-only scopes when showing authorizations
[rails.git] / app / views / oauth2_authorized_applications / _application.html.erb
index 7cb03de2f13022922cbd79f663370d49dc742c48..28d048c4a098a727d7f289aec84c61ebce69cd6e 100644 (file)
@@ -4,8 +4,8 @@
   </td>
   <td class="align-middle">
     <ul class="list-unstyled mb-0">
-      <% application.scopes.each do |scope| -%>
-        <li><%= t "oauth.scopes.#{scope}" %></li>
+      <% application.authorized_scopes_for(current_user).each do |scope| -%>
+        <li><%= authorization_scope(scope) %></li>
       <% end -%>
     </ul>
   </td>