Skip to content

Commit

Permalink
Merge pull request #171 from peaceiris/allow-empty-permissions
Browse files Browse the repository at this point in the history
Allow empty permissions
  • Loading branch information
rhysd authored Jul 7, 2022
2 parents d7cb447 + 39cf70e commit 98eb35b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion parse.go
Original file line number Diff line number Diff line change
Expand Up @@ -629,7 +629,7 @@ func (p *parser) parsePermissions(pos *Pos, n *yaml.Node) *Permissions {
if n.Kind == yaml.ScalarNode {
ret.All = p.parseString(n, false)
} else {
m := p.parseSectionMapping("permissions", n, false)
m := p.parseSectionMapping("permissions", n, true)
scopes := make(map[string]*PermissionScope, len(m))
for _, kv := range m {
scopes[kv.key.Value] = &PermissionScope{
Expand Down

0 comments on commit 98eb35b

Please sign in to comment.