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:
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() {
|
||||
|
||||
Reference in New Issue
Block a user