mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-05 19:59:37 -06:00
add expand query for personal drive
This commit is contained in:
@@ -213,13 +213,13 @@ func (g Graph) GetUser(w http.ResponseWriter, r *http.Request) {
|
||||
d.Quota = quota
|
||||
if slices.Contains(sel, "drive") || slices.Contains(exp, "drive") {
|
||||
if *d.DriveType == "personal" {
|
||||
drives = append(drives, *d)
|
||||
user.Drive = d
|
||||
}
|
||||
} else {
|
||||
drives = append(drives, *d)
|
||||
user.Drives = drives
|
||||
}
|
||||
}
|
||||
user.Drives = drives
|
||||
}
|
||||
|
||||
render.Status(r, http.StatusOK)
|
||||
|
||||
Reference in New Issue
Block a user