1 # frozen_string_literal: true
3 module AuthorizationHelper
4 include ActionView::Helpers::TranslationHelper
6 def authorization_scope(scope)
8 html << t("oauth.scopes.#{scope}")
9 if Oauth::MODERATOR_SCOPES.include? scope
11 html << inline_svg_tag("icons/role-star.svg", :class => "role-icon moderator align-text-bottom",
12 :title => t("oauth.for_roles.moderator"))