Merge pull request #5501 from zexi/hotfix/check-is-authed

auth: check isAuthed if nil
This commit is contained in:
Zexi Li
2020-03-13 19:18:05 +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
}