cartodb-4.42/lib/carto/oauth_provider/scopes/dataservices_scope.rb
2024-04-06 05:25:13 +00:00

18 lines
427 B
Ruby

module Carto
module OauthProvider
module Scopes
class DataservicesScope < DefaultScope
def initialize(service, description)
super('dataservices', service, CATEGORY_MONEY, description)
@grant_key = :services
end
def add_to_api_key_grants(grants, _user = nil)
super(grants)
ensure_includes_apis(grants, ['sql'])
end
end
end
end
end