No need to check auth level when choosing NS/DB
This commit is contained in:
parent
63e516b63f
commit
cd20e647a0
1 changed files with 0 additions and 16 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue