LET and RETURN should not need SC level permissions
This commit is contained in:
parent
9b0ef8d6d7
commit
926ef37234
2 changed files with 2 additions and 2 deletions
|
@ -18,7 +18,7 @@ func (p *parser) parseLetStatement() (stmt *LetStatement, err error) {
|
||||||
|
|
||||||
stmt = &LetStatement{}
|
stmt = &LetStatement{}
|
||||||
|
|
||||||
if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthSC); err != nil {
|
if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthNO); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ func (p *parser) parseReturnStatement() (stmt *ReturnStatement, err error) {
|
||||||
|
|
||||||
stmt = &ReturnStatement{}
|
stmt = &ReturnStatement{}
|
||||||
|
|
||||||
if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthSC); err != nil {
|
if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthNO); err != nil {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue