mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
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:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user