From 540e3ffa745bfc86676e218b447a577045c7c495 Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Wed, 29 Mar 2023 14:21:02 -0400 Subject: [PATCH] record share identifier for access private frontends (#278) --- controller/access.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/access.go b/controller/access.go index 3be1d064..ee2970a5 100644 --- a/controller/access.go +++ b/controller/access.go @@ -61,7 +61,7 @@ func (h *accessHandler) Handle(params share.AccessParams, principal *rest_model_ return share.NewAccessInternalServerError() } - if _, err := str.CreateFrontend(envId, &store.Frontend{Token: feToken, ZId: envZId}, tx); err != nil { + if _, err := str.CreateFrontend(envId, &store.Frontend{PrivateShareId: &shr.Id, Token: feToken, ZId: envZId}, tx); err != nil { logrus.Errorf("error creating frontend record for user '%v': %v", principal.Email, err) return share.NewAccessInternalServerError() }