Skip to content
Snippets Groups Projects
Unverified Commit eb2417ce authored by Claire's avatar Claire Committed by GitHub
Browse files

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

parent 4658263b
No related branches found
No related tags found
No related merge requests found
# 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) }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment