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
+1
View File
@@ -612,6 +612,7 @@ func runSession(ctx context.Context, cancel context.CancelFunc, conn *websocket.
hello.CPU = hw.CPU
hello.GPU = hw.GPU
hello.RAM = hw.RAM
hello.IsAdmin = sysinfo.IsAdmin()
if err := wire.WriteMsg(ctx, env.Conn, hello); err != nil {
return fmt.Errorf("send hello: %w", err)