Merge pull request #1397 from thaJeztah/fix-subscription-filter

[master] fix subscription filter
This commit is contained in:
Silvin Lubecki 2019-03-18 15:35:08 +01:00 committed by GitHub
commit 0d922266e2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -102,7 +102,7 @@ func (u HubUser) GetAvailableLicenses(ctx context.Context) ([]LicenseDisplay, er
// Filter out expired licenses // Filter out expired licenses
i := 0 i := 0
for _, s := range subs { for _, s := range subs {
if s.State != "expired" && s.Expires != nil { if s.State == "active" && s.Expires != nil {
owner := "" owner := ""
if s.DockerID == u.User.ID { if s.DockerID == u.User.ID {
owner = u.User.Username owner = u.User.Username