liquid_feedback_frontend

diff env/util/scope_name.lua @ 1309:32cc544d5a5b

Cumulative patch for upcoming frontend version 4
author bsw/jbe
date Sun Jul 15 14:07:29 2018 +0200 (2018-07-15)
parents
children
line diff
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/env/util/scope_name.lua	Sun Jul 15 14:07:29 2018 +0200
     1.3 @@ -0,0 +1,9 @@
     1.4 +function util.scope_name(scope)
     1.5 +  local name
     1.6 +  for i, entry in ipairs(config.oauth2.available_scopes) do
     1.7 +    if entry.scope == scope then
     1.8 +      name = entry.name[locale.get("lang")] or entry.scope
     1.9 +    end
    1.10 +  end
    1.11 +  return name
    1.12 +end

Impressum / About Us