respect 'deleted' flag in store.IsAccountGrantedSkipInterstitial

This commit is contained in:
Michael Quigley 2024-07-29 13:55:57 -04:00
parent 3283ad0cc0
commit 05caf3dd33
No known key found for this signature in database
GPG Key ID: 9B60314A9DD20A62
2 changed files with 3 additions and 1 deletions

View File

@ -2,6 +2,8 @@
## v0.4.37
FIX: Fix for `store.IsAccountGrantedSkipInterstitial` to respect the `deleted` flag.
FIX: When an error occurs connecting to the proxied endpoint, the `proxy` backend should return HTTP status `502` (https://github.com/openziti/zrok/issues/703)
## v0.4.36

View File

@ -6,7 +6,7 @@ import (
)
func (str *Store) IsAccountGrantedSkipInterstitial(acctId int, trx *sqlx.Tx) (bool, error) {
stmt, err := trx.Prepare("select count(0) from skip_interstitial_grants where account_id = $1")
stmt, err := trx.Prepare("select count(0) from skip_interstitial_grants where account_id = $1 and not deleted")
if err != nil {
return false, errors.Wrap(err, "error preparing skip_interstitial_grants select statement")
}