Merge pull request #4363 from owncloud/fix-quota-unrestricted

fix unrestricted quota
This commit is contained in:
Michael Barz
2022-08-08 20:57:44 +02:00
committed by GitHub
2 changed files with 8 additions and 4 deletions
+3 -4
View File
@@ -640,16 +640,15 @@ func (g Graph) getDriveQuota(ctx context.Context, space *storageprovider.Storage
}
used := int64(res.UsedBytes)
total := int64(res.TotalBytes)
qta := libregraph.Quota{
Remaining: &remaining,
Used: &used,
Total: &total,
}
var t int64
if total := int64(res.TotalBytes); total != 0 {
// A quota was set
qta.Total = &total
if total != 0 {
t = total
} else {
// Quota was not set