Change name of authentication scope level

This commit is contained in:
Tobie Morgan Hitchcock 2016-11-14 13:26:07 +00:00
parent e66435258e
commit 2a10913b06
9 changed files with 11 additions and 11 deletions

View file

@ -18,7 +18,7 @@ func (p *parser) parseCreateStatement() (stmt *CreateStatement, err error) {
stmt = &CreateStatement{}
if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthTB); err != nil {
if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthSC); err != nil {
return nil, err
}

View file

@ -18,7 +18,7 @@ func (p *parser) parseDeleteStatement() (stmt *DeleteStatement, err error) {
stmt = &DeleteStatement{}
if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthTB); err != nil {
if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthSC); err != nil {
return nil, err
}

View file

@ -20,7 +20,7 @@ func (p *parser) parseLetStatement() (stmt *LetStatement, err error) {
stmt = &LetStatement{}
if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthTB); err != nil {
if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthSC); err != nil {
return nil, err
}

View file

@ -27,7 +27,7 @@ const (
// Database access
AuthDB
// Scoped user access
AuthTB
AuthSC
// No access
AuthNO
)

View file

@ -18,7 +18,7 @@ func (p *parser) parseRelateStatement() (stmt *RelateStatement, err error) {
stmt = &RelateStatement{}
if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthTB); err != nil {
if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthSC); err != nil {
return nil, err
}

View file

@ -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(AuthTB); err != nil {
if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthSC); err != nil {
return nil, err
}

View file

@ -18,7 +18,7 @@ func (p *parser) parseSelectStatement() (stmt *SelectStatement, err error) {
stmt = &SelectStatement{}
if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthTB); err != nil {
if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthSC); err != nil {
return nil, err
}

View file

@ -18,7 +18,7 @@ func (p *parser) parseBeginStatement() (stmt *BeginStatement, err error) {
stmt = &BeginStatement{}
if _, _, _, err = p.o.get(AuthTB); err != nil {
if _, _, _, err = p.o.get(AuthSC); err != nil {
return nil, err
}
@ -36,7 +36,7 @@ func (p *parser) parseCancelStatement() (stmt *CancelStatement, err error) {
stmt = &CancelStatement{}
if _, _, _, err = p.o.get(AuthTB); err != nil {
if _, _, _, err = p.o.get(AuthSC); err != nil {
return nil, err
}
@ -54,7 +54,7 @@ func (p *parser) parseCommitStatement() (stmt *CommitStatement, err error) {
stmt = &CommitStatement{}
if _, _, _, err = p.o.get(AuthTB); err != nil {
if _, _, _, err = p.o.get(AuthSC); err != nil {
return nil, err
}

View file

@ -18,7 +18,7 @@ func (p *parser) parseUpdateStatement() (stmt *UpdateStatement, err error) {
stmt = &UpdateStatement{}
if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthTB); err != nil {
if stmt.KV, stmt.NS, stmt.DB, err = p.o.get(AuthSC); err != nil {
return nil, err
}