class Doorkeeper::OAuth::BaseRequest
def build_scopes
def build_scopes if @original_scopes.present? OAuth::Scopes.from_string(@original_scopes) else client_scopes = @client&.scopes return default_scopes if client_scopes.blank? # Avoid using Scope#& for dynamic scopes client_scopes.allowed(default_scopes) end end