mirror of
https://github.com/openziti/zrok.git
synced 2025-05-31 23:25:58 +02:00
skip interstitial on drive shares (#704)
This commit is contained in:
parent
c3cf0f8668
commit
e0b467fab0
@ -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)
|
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)
|
var skipInterstitial bool
|
||||||
if err != nil {
|
if backendMode != sdk.DriveBackendMode {
|
||||||
logrus.Errorf("error checking skip interstitial for account '%v': %v", principal.Email, err)
|
skipInterstitial, err = str.IsAccountGrantedSkipInterstitial(int(principal.ID), trx)
|
||||||
return share.NewShareInternalServerError()
|
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)
|
shrZId, frontendEndpoints, err = newPublicResourceAllocator().allocate(envZId, shrToken, frontendZIds, frontendTemplates, params, !skipInterstitial, edge)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user