Merge pull request #5502 from zexi/automated-cherry-pick-of-#5501-upstream-release-3.1

Automated cherry pick of #5501: auth: check isAuthed if nil
This commit is contained in:
Zexi Li
2020-03-13 19:18:18 +08:00
committed by GitHub
+3
View File
@@ -232,6 +232,9 @@ func (a *authManager) isExpired() bool {
}
func (a *authManager) isAuthed() bool {
if a == nil {
return false
}
if a.adminCredential == nil || a.isExpired() {
return false
}