mirror of
https://github.com/harness/drone.git
synced 2025-05-17 09:30:00 +08:00
fix incorrect user count being logged
This commit is contained in:
parent
b90a7dd7d6
commit
3deb69886a
@ -101,5 +101,9 @@ func Load(path string) (*core.License, error) {
|
|||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if license.Users == 0 && decoded.Lim > 0 {
|
||||||
|
license.Users = int64(decoded.Lim)
|
||||||
|
}
|
||||||
|
|
||||||
return license, err
|
return license, err
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user