From f68cb7146612a1041aee5540307ec42450e817f3 Mon Sep 17 00:00:00 2001 From: Michael Quigley Date: Tue, 25 Jun 2024 14:27:45 -0400 Subject: [PATCH] fix for private frontend permission mode (#677) --- controller/access.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/controller/access.go b/controller/access.go index 5b9d8dce..e3fc9d9a 100644 --- a/controller/access.go +++ b/controller/access.go @@ -81,7 +81,7 @@ func (h *accessHandler) Handle(params share.AccessParams, principal *rest_model_ return share.NewAccessInternalServerError() } - if _, err := str.CreateFrontend(envId, &store.Frontend{PrivateShareId: &shr.Id, Token: feToken, ZId: envZId}, trx); err != nil { + if _, err := str.CreateFrontend(envId, &store.Frontend{PrivateShareId: &shr.Id, Token: feToken, ZId: envZId, PermissionMode: store.ClosedPermissionMode}, trx); err != nil { logrus.Errorf("error creating frontend record for user '%v': %v", principal.Email, err) return share.NewAccessInternalServerError() }