Fix hidden metadata
This commit is contained in:
@@ -20,7 +20,8 @@ class Wiaas_Document_Download {
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle download for order documents by gravity flow steps
|
||||
* Handle download of order documents by gravity flow steps for wordpress administration interface
|
||||
*
|
||||
*/
|
||||
public static function admin_gf_order_document_download() {
|
||||
|
||||
@@ -44,6 +45,8 @@ class Wiaas_Document_Download {
|
||||
}
|
||||
|
||||
/**
|
||||
* Handle document download for wordpress administration interface
|
||||
*
|
||||
* Since only REST api uses JWT Authentication this endpoint will work only for users
|
||||
* that are logged in directly to wordpress
|
||||
*/
|
||||
@@ -84,7 +87,8 @@ class Wiaas_Document_Download {
|
||||
}
|
||||
|
||||
/**
|
||||
* Download order other document (not binded to any bundle)
|
||||
* Download order other document (not related to any order item)
|
||||
*
|
||||
* @param int $order_id
|
||||
* @param string $document_key
|
||||
*/
|
||||
@@ -113,8 +117,6 @@ class Wiaas_Document_Download {
|
||||
|
||||
$file_path = wiaas_get_document_version_path($order_document['version']);
|
||||
|
||||
error_log($file_path);
|
||||
|
||||
if (!file_exists($file_path)) {
|
||||
wp_die( __( 'Document not found.', 'wiaas' ), __( 'Download Error', 'wiaas' ), array( 'response' => 404 ) );
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user