Allow exporting for NS and DB users
This commit is contained in:
parent
9deae2c466
commit
a980bdac6b
1 changed files with 1 additions and 1 deletions
|
@ -22,7 +22,7 @@ import (
|
||||||
|
|
||||||
func export(c *fibre.Context) (err error) {
|
func export(c *fibre.Context) (err error) {
|
||||||
|
|
||||||
if c.Get("auth").(*cnf.Auth).Kind != cnf.AuthKV {
|
if c.Get("auth").(*cnf.Auth).Kind >= cnf.AuthSC {
|
||||||
return fibre.NewHTTPError(401)
|
return fibre.NewHTTPError(401)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue