1
0
mirror of https://github.com/rclone/rclone.git synced 2026-02-23 16:13:00 +00:00

onedrive: fix require sign in for Onedrive Personal

require_sign_in and regain_inherited_permissions in Onedrive Personal
have been brought into line with Onedrive Business.
This commit is contained in:
Nick Craig-Wood
2026-01-29 17:57:01 +00:00
parent 8a31921fb0
commit 1d6f86900b

View File

@@ -596,12 +596,10 @@ func (m *Metadata) addPermission(ctx context.Context, p *api.PermissionsType) (n
req := &api.AddPermissionsRequest{
Recipients: fillRecipients(p, m.fs.driveType),
RequireSignIn: m.fs.driveType != driveTypePersonal, // personal and business have conflicting requirements
RequireSignIn: true,
Roles: p.Roles,
}
if m.fs.driveType != driveTypePersonal {
req.RetainInheritedPermissions = false // not supported for personal
}
req.RetainInheritedPermissions = false
if p.Link != nil && p.Link.Scope == api.AnonymousScope {
link, err := m.fs.PublicLink(ctx, m.remote, fs.DurationOff, false)