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

Claire 2023-07-04 18:58:23 +02:00 committed by Rin
parent 994c2c9402
commit 648aeb7c97
Signed by: Rin
GPG Key ID: 0C8733C13A7E1293
1 changed files with 1 additions and 1 deletions

View File

@ -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) }