summaryrefslogtreecommitdiffhomepage
path: root/drive/remote_nonunix.go
blob: 4186ec0ad46e768279bffff4f3b9ea0d03b0cb2a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// Copyright (c) Tailscale Inc & contributors
// SPDX-License-Identifier: BSD-3-Clause

//go:build !unix

package drive

func doAllowShareAs() bool {
	// On non-UNIX platforms, we use the GUI application (e.g. Windows taskbar
	// icon) to access the filesystem as whatever unprivileged user is running
	// the GUI app, so we cannot allow sharing as a different user.
	return false
}