Fix OAuth apps page crashing when listing apps with certain admin API scopes (#25713)

local
Claire 10 months ago committed by GitHub
parent 4658263b4a
commit eb2417ce99
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      app/lib/scope_parser.rb

@ -1,7 +1,7 @@
# frozen_string_literal: true
class ScopeParser < Parslet::Parser
rule(:term) { match('[a-z]').repeat(1).as(:term) }
rule(:term) { match('[a-z_]').repeat(1).as(:term) }
rule(:colon) { str(':') }
rule(:access) { (str('write') | str('read')).as(:access) }
rule(:namespace) { str('admin').as(:namespace) }

Loading…
Cancel
Save