20831: Revert making IsAdmin and IsInvited a pointer
[arvados.git] / lib / controller / localdb / container_gateway.go
index 376f55b7b3f65d0be7121d07e0a5e985a33a7c07..0b6a630faea3707a2fdf59164cf2f96e04750644 100644 (file)
@@ -349,7 +349,7 @@ func (conn *Conn) ContainerSSH(ctx context.Context, opts arvados.ContainerSSHOpt
                return sshconn, err
        }
        ctxRoot := auth.NewContext(ctx, &auth.Credentials{Tokens: []string{conn.cluster.SystemRootToken}})
-       if !*user.IsAdmin || !conn.cluster.Containers.ShellAccess.Admin {
+       if !user.IsAdmin || !conn.cluster.Containers.ShellAccess.Admin {
                if !conn.cluster.Containers.ShellAccess.User {
                        return sshconn, httpserver.ErrorWithStatus(errors.New("shell access is disabled in config"), http.StatusServiceUnavailable)
                }