From 926ef372348d1c7badaf58f5152f7ba448e2dc18 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 12 Feb 2018 15:38:34 +0000 Subject: [PATCH] LET and RETURN should not need SC level permissions --- sql/let.go | 2 +- sql/return.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sql/let.go b/sql/let.go index 21b0cc85..3e2f62c2 100644 --- a/sql/let.go +++ b/sql/let.go @@ -18,7 +18,7 @@ func (p *parser) parseLetStatement() (stmt *LetStatement, err error) { 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 } diff --git a/sql/return.go b/sql/return.go index b7046912..7b02a7b6 100644 --- a/sql/return.go +++ b/sql/return.go @@ -18,7 +18,7 @@ func (p *parser) parseReturnStatement() (stmt *ReturnStatement, err error) { 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 }