Skip to content

Commit

Permalink
Merge branch 'develop' into fix/getProductsResponseType
Browse files Browse the repository at this point in the history
  • Loading branch information
marfavi authored Nov 2, 2023
2 parents 612bb3d + 9c33d3b commit 9e4bc36
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coffeecard/CoffeeCard.Library/Utils/ProductExtensions.cs
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ public static bool IsPerk(this Product product)
throw new ArgumentNullException($"{nameof(Product.ProductUserGroup)} must not be null");
}

return product.ProductUserGroup.Any(pug => pug.UserGroup != UserGroup.Customer);
return product.ProductUserGroup.All(pug => pug.UserGroup != UserGroup.Customer);
}
}
}

0 comments on commit 9e4bc36

Please sign in to comment.