|
@@ 367-373 (lines=7) @@
|
| 364 |
|
try { |
| 365 |
|
$share = $this->shareManager->getShareByToken($shareToken); |
| 366 |
|
// not authenticated ? |
| 367 |
|
if($share->getPassword()){ |
| 368 |
|
if (!$this->session->exists('public_link_authenticated') |
| 369 |
|
|| $this->session->get('public_link_authenticated') !== (string)$share->getId() |
| 370 |
|
) { |
| 371 |
|
throw new \Exception('Invalid password'); |
| 372 |
|
} |
| 373 |
|
} |
| 374 |
|
|
| 375 |
|
$node = $share->getNode(); |
| 376 |
|
if($node instanceof Folder) { |
|
@@ 430-436 (lines=7) @@
|
| 427 |
|
try { |
| 428 |
|
$share = $this->shareManager->getShareByToken($shareToken); |
| 429 |
|
// not authenticated ? |
| 430 |
|
if($share->getPassword()){ |
| 431 |
|
if (!$this->session->exists('public_link_authenticated') |
| 432 |
|
|| $this->session->get('public_link_authenticated') !== (string)$share->getId() |
| 433 |
|
) { |
| 434 |
|
throw new \Exception('Invalid password'); |
| 435 |
|
} |
| 436 |
|
} |
| 437 |
|
|
| 438 |
|
$node = $share->getNode(); |
| 439 |
|
if ($filePath !== null) { |