add a pill to show if a user is admin or not

This commit is contained in:
KingKDot
2026-04-07 10:36:29 -05:00
parent 604803b5ee
commit ff9fda24af
11 changed files with 56 additions and 8 deletions
@@ -0,0 +1,11 @@
//go:build windows
package sysinfo
import "golang.org/x/sys/windows"
// check current process token to see if we're admin asf
func IsAdmin() bool {
token := windows.GetCurrentProcessToken()
return token.IsElevated()
}