Allow exporting for NS and DB users

This commit is contained in:
Tobie Morgan Hitchcock 2019-11-28 17:30:59 +00:00
parent 9deae2c466
commit a980bdac6b

View file

@ -22,7 +22,7 @@ import (
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)
}