Skip to content

Commit

Permalink
[MNOE-932] Proper flags based on API
Browse files Browse the repository at this point in the history
  • Loading branch information
MAhsenArif committed Mar 26, 2018
1 parent f9641a0 commit 710c6df
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ def index
terms.map { |t| @organizations = @organizations | MnoEnterprise::Organization.where(Hash[*t]).fetch }
filters = terms['listing_filters']
if filters
@organizations.reject! { |x| x.account_frozen? } if filters && filters.dig('account_frozen') == 'true'
@organizations.reject! { |x| x.demo_account? } if filters && filters.dig('demo_account') == 'true'
@organizations.reject! { |x| x.account_frozen? } if filters && filters.dig('account_frozen') == 'false'
@organizations.reject! { |x| x.demo_account? } if filters && filters.dig('demo_account') == 'false'
end
response.headers['X-Total-Count'] = @organizations.count
else
Expand Down

0 comments on commit 710c6df

Please sign in to comment.