Project

General

Profile

« Previous | Next » 

Revision a81fd218

Added by Justin Sherrill about 10 years ago

fixes #4906 - respect organization for sync plans

View differences:

app/controllers/katello/api/v2/sync_plans_controller.rb
param :sync_date, String, :desc => "filter by sync date"
param :interval, SyncPlan::TYPES, :desc => "filter by interval"
def index
filters = []
filters = [{:term => {:organization_id => @organization.id} }]
if params[:sync_date]
filters << {:terms => {:sync_date => [params[:sync_date]] }}

Also available in: Unified diff