diff --git a/controller/share.go b/controller/share.go index 21d018bc..b43088d1 100644 --- a/controller/share.go +++ b/controller/share.go @@ -133,10 +133,15 @@ func (h *shareHandler) Handle(params share.ShareParams, principal *rest_model_zr logrus.Infof("added frontend selection '%v' with ziti identity '%v' for share '%v'", frontendSelection, sfe.ZId, shrToken) } } - skipInterstitial, err := str.IsAccountGrantedSkipInterstitial(int(principal.ID), trx) - if err != nil { - logrus.Errorf("error checking skip interstitial for account '%v': %v", principal.Email, err) - return share.NewShareInternalServerError() + var skipInterstitial bool + if backendMode != sdk.DriveBackendMode { + skipInterstitial, err = str.IsAccountGrantedSkipInterstitial(int(principal.ID), trx) + if err != nil { + logrus.Errorf("error checking skip interstitial for account '%v': %v", principal.Email, err) + return share.NewShareInternalServerError() + } + } else { + skipInterstitial = true } shrZId, frontendEndpoints, err = newPublicResourceAllocator().allocate(envZId, shrToken, frontendZIds, frontendTemplates, params, !skipInterstitial, edge) if err != nil {