diff --git a/auth/store.go b/auth/store.go index 20a1c6834..d6f820dd2 100644 --- a/auth/store.go +++ b/auth/store.go @@ -706,6 +706,11 @@ func (as *authStore) isOpPermitted(userName string, revision uint64, key, rangeE return nil } + // only gets rev == 0 when passed AuthInfo{}; no user given + if revision == 0 { + return ErrUserEmpty + } + if revision < as.revision { return ErrAuthOldRevision }