fix subscription filter
Signed-off-by: Mason Fish <mason.fish@docker.com> (cherry picked from commit a31b20d7dbce383f94c87583e483d81a9809a42d) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
parent
7f09b9d8e2
commit
e7176e8dd0
@ -102,7 +102,7 @@ func (u HubUser) GetAvailableLicenses(ctx context.Context) ([]LicenseDisplay, er
|
||||
// Filter out expired licenses
|
||||
i := 0
|
||||
for _, s := range subs {
|
||||
if s.State != "expired" && s.Expires != nil {
|
||||
if s.State == "active" && s.Expires != nil {
|
||||
owner := ""
|
||||
if s.DockerID == u.User.ID {
|
||||
owner = u.User.Username
|
||||
|
Loading…
x
Reference in New Issue
Block a user