From 8e2f596fd0bc33aaac2a26a9158f5f9330dfcea7 Mon Sep 17 00:00:00 2001 From: Nick Craig-Wood Date: Mon, 20 May 2024 23:08:24 +0100 Subject: [PATCH] drive: debug when we are ignoring permissions #7853 --- backend/drive/metadata.go | 1 + 1 file changed, 1 insertion(+) diff --git a/backend/drive/metadata.go b/backend/drive/metadata.go index a0b8d41c9..c8afa7f8d 100644 --- a/backend/drive/metadata.go +++ b/backend/drive/metadata.go @@ -372,6 +372,7 @@ func (o *baseObject) parseMetadata(ctx context.Context, info *drive.File) (err e // shared drives. if o.fs.isTeamDrive && !info.HasAugmentedPermissions { // Don't process permissions if there aren't any specifically set + fs.Debugf(o, "Ignoring %d permissions and %d permissionIds as is shared drive with hasAugmentedPermissions false", len(info.Permissions), len(info.PermissionIds)) info.Permissions = nil info.PermissionIds = nil }