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

[MNOE-932] Add option to view demo / frozen accounts in list of organisations #670

Open
wants to merge 3 commits into
base: 3.3
Choose a base branch
from

Conversation

MAhsenArif
Copy link
Contributor

No description provided.

@MAhsenArif MAhsenArif force-pushed the frozen_demo_account_filtering branch from 710c6df to 5fcfd29 Compare March 26, 2018 15:02
@MAhsenArif MAhsenArif force-pushed the frozen_demo_account_filtering branch from 5fcfd29 to 7595883 Compare March 26, 2018 16:56
filters = terms['listing_filters']
if filters
@organizations.reject! { |x| x.account_frozen? } if filters && filters.dig('account_frozen') == false
@organizations.reject! { |x| x.demo_account.present? } if filters && filters.dig('demo_account') == false
Copy link

Choose a reason for hiding this comment

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

You're already checking that filters exist in the first if condition

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants