No need to check auth level when choosing NS/DB

This commit is contained in:
Tobie Morgan Hitchcock 2016-11-14 13:23:34 +00:00
parent 63e516b63f
commit cd20e647a0

View file

@ -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.