1
0
mirror of https://github.com/netbirdio/netbird.git synced 2024-12-14 10:50:45 +01:00
netbird/util/membership_windows.go
Misha Bragin 06860c4c10
NetBird SSH ()
This PR adds support for SSH access through the NetBird network
without managing SSH skeys.
NetBird client app has an embedded SSH server (Linux/Mac only) 
and a netbird ssh command.
2022-06-23 17:04:53 +02:00

13 lines
255 B
Go

package util
import "golang.zx2c4.com/wireguard/windows/elevate"
// IsAdmin returns true if user has admin privileges
func IsAdmin() bool {
adminDesktop, err := elevate.IsAdminDesktop()
if err == nil && adminDesktop {
return true
}
return false
}