Change read:me
scope to profile
scope (#30357)
Co-authored-by: Claire <claire.github-309c@sitedethib.com>
This commit is contained in:
parent
569b7d2f25
commit
e02d23b549
10 changed files with 68 additions and 9 deletions
|
@ -11,6 +11,9 @@ class ScopeTransformer < Parslet::Transform
|
|||
@namespace = scope[:namespace]&.to_s
|
||||
@access = scope[:access] ? [scope[:access].to_s] : DEFAULT_ACCESS.dup
|
||||
@term = scope[:term]&.to_s || DEFAULT_TERM
|
||||
|
||||
# # override for profile scope which is read only
|
||||
@access = %w(read) if @term == 'profile'
|
||||
end
|
||||
|
||||
def key
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue