Diff
1diff --git a/server/cmd/user.go b/server/cmd/user.go
2index 2cb4f9aa179dd15e17fec133c11024cc980bbd93..6518b52d51f3e07ef7a133661cc641f0df007ed5 100644
3--- a/server/cmd/user.go
4+++ b/server/cmd/user.go
5@@ -141,7 +141,7 @@ func userCommand() *cobra.Command {
6 Args: cobra.ExactArgs(1),
7 PersistentPreRunE: checkIfAdmin,
8 RunE: func(cmd *cobra.Command, args []string) error {
9- cfg, s := fromContext(cmd)
10+ cfg, _ := fromContext(cmd)
11 username := args[0]
12
13 user, err := cfg.Backend.User(username)
14@@ -150,12 +150,6 @@ func userCommand() *cobra.Command {
15 }
16
17 isAdmin := user.IsAdmin()
18- for _, k := range cfg.AdminKeys() {
19- if backend.KeysEqual(k, s.PublicKey()) {
20- isAdmin = true
21- break
22- }
23- }
24
25 cmd.Printf("Username: %s\n", user.Username())
26 cmd.Printf("Admin: %t\n", isAdmin)