graph/sharedWithMe: Set the permission property only on the wrapped remoteItem

Sematically the outer driveItem shouldn't carryt the permission. It's the `remoteItem`
that reflects the grantee's permissions.
This commit is contained in:
Ralf Haferkamp
2024-01-16 15:09:27 +01:00
committed by Ralf Haferkamp
parent dd61270e7d
commit 03e704c291
@@ -233,7 +233,6 @@ func (g Graph) listSharedWithMe(ctx context.Context) ([]libregraph.DriveItem, er
permissions := []libregraph.Permission{*permission}
remoteItem.Permissions = permissions
driveItem.Permissions = permissions
}
if !reflect.ValueOf(*parentReference).IsZero() {