mirror of
https://github.com/openziti/zrok.git
synced 2024-11-25 09:33:43 +01:00
fix for broken environment count inheritance (#695)
This commit is contained in:
parent
187c06aac2
commit
3934020265
@ -68,7 +68,7 @@ func (a *Agent) CanCreateEnvironment(acctId int, trx *sqlx.Tx) (bool, error) {
|
|||||||
if err != nil {
|
if err != nil {
|
||||||
return false, err
|
return false, err
|
||||||
}
|
}
|
||||||
if len(envs)+1 > a.cfg.Environments {
|
if len(envs)+1 > ul.resource.GetEnvironments() {
|
||||||
return false, nil
|
return false, nil
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user