|
@@ 385-387 (lines=3) @@
|
| 382 |
|
if ( is_user_logged_in() ) { |
| 383 |
|
if ( (int)$invoice->get_user_id() === (int)get_current_user_id() ) { |
| 384 |
|
$allow = true; |
| 385 |
|
} else if ( !wpinv_require_login_to_checkout() && isset( $_GET['invoice_key'] ) && $_GET['invoice_key'] === $invoice->get_key() ) { |
| 386 |
|
$allow = true; |
| 387 |
|
} |
| 388 |
|
} else { |
| 389 |
|
if ( !wpinv_require_login_to_checkout() && isset( $_GET['invoice_key'] ) && $_GET['invoice_key'] === $invoice->get_key() ) { |
| 390 |
|
$allow = true; |
|
@@ 388-392 (lines=5) @@
|
| 385 |
|
} else if ( !wpinv_require_login_to_checkout() && isset( $_GET['invoice_key'] ) && $_GET['invoice_key'] === $invoice->get_key() ) { |
| 386 |
|
$allow = true; |
| 387 |
|
} |
| 388 |
|
} else { |
| 389 |
|
if ( !wpinv_require_login_to_checkout() && isset( $_GET['invoice_key'] ) && $_GET['invoice_key'] === $invoice->get_key() ) { |
| 390 |
|
$allow = true; |
| 391 |
|
} |
| 392 |
|
} |
| 393 |
|
} |
| 394 |
|
} |
| 395 |
|
|