mirror of
https://github.com/yunionio/cloudpods.git
synced 2026-09-24 16:03:43 +08:00
fix: skip get metadata check if usercred is nil
This commit is contained in:
@@ -658,8 +658,9 @@ func isAllowGetMetadata(ctx context.Context, obj IModel, userCred mcclient.Token
|
||||
return true
|
||||
}
|
||||
}
|
||||
return false
|
||||
}
|
||||
return false
|
||||
return true
|
||||
}
|
||||
|
||||
func (manager *SMetadataManager) GetAll(ctx context.Context, obj IModel, keys []string, keyPrefix string, userCred mcclient.TokenCredential) (map[string]string, error) {
|
||||
|
||||
Reference in New Issue
Block a user