mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-10-29 17:58:36 +08:00
Merge pull request #5501 from zexi/hotfix/check-is-authed
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