From cd20e647a05247c05dcc3e839d00795ae45d3ac0 Mon Sep 17 00:00:00 2001 From: Tobie Morgan Hitchcock Date: Mon, 14 Nov 2016 13:23:34 +0000 Subject: [PATCH] No need to check auth level when choosing NS/DB --- sql/options.go | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/sql/options.go b/sql/options.go index ba085bc1..f1031d68 100644 --- a/sql/options.go +++ b/sql/options.go @@ -69,14 +69,6 @@ func (o *options) get(kind int) (kv, ns, db string, err error) { func (o *options) ns(ns string) (err error) { - // Check to see that the current user has - // the necessary access level to perform - // namespace switching / choosing. - - if o.kind > AuthKV { - return &EntryError{} - } - // Check to see that the current user has // the necessary authentcation privileges // to be able to specify this namespace. @@ -97,14 +89,6 @@ func (o *options) ns(ns string) (err error) { func (o *options) db(db string) (err error) { - // Check to see that the current user has - // the necessary access level to perform - // database switching / choosing. - - if o.kind > AuthNS { - return &EntryError{} - } - // Check to see that the current user has // the necessary authentcation privileges // to be able to specify this namespace.