Files
akkounts/app/helpers/oauth_helper.rb
T
2023-03-28 01:21:28 +02:00

12 lines
159 B
Ruby

module OauthHelper
def scope_name(scope)
scope.gsub(/(\:.+)/, '')
end
def scope_permissions(scope)
scope.match(/\:r$/) ? "r" : "rw"
end
end