/**
  * Gets an array of all the capabilities the current user is missing that affected
  * the query
  *
  * @param \EEM_Base $model
  * @param string $request_type one of the constants on WP_JSON_Server
  * @return array
  */
 public static function get_missing_permissions($model, $request_type = \EEM_Base::caps_read)
 {
     return $model->caps_missing($request_type);
 }