def admin_variant_ids
      return if !user_is_allowed('variants', 'edit')
      img = ProductImage.find(params[:id])
      ids = img.variants.collect{ |v| v.id }
      render :json => ids
    end
def admin_variant_ids
      return if !user_is_allowed('variants', 'edit')
      img = ProductImage.find(params[:id])
      ids = img.variants.collect{ |v| v.id }
      render :json => ids
    end
=============================================================================
 Admin actions
=============================================================================
 @route GET /admin/product-images/:id/variant-ids