Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes #14043 - Product Content can be filtered by Organization #5839

Closed
wants to merge 1 commit into from

Conversation

zjhuntin
Copy link
Member

@zjhuntin zjhuntin commented Mar 3, 2016

In Hammer it let me return product content from an activation key even if I entered an Organization-ID that the activation key does not belong to. It should filter correctly now.

if params.key?(:organization_id)
content = @activation_key.organization == @organization ? @activation_key.available_content : []
else
content = @activation_key.available_content
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An activation key should already be associated to a single organization, which to me would imply that whats not handling things correctly is this available_content method call.

@zjhuntin zjhuntin closed this Mar 3, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants