|
@@ 278-281 (lines=4) @@
|
| 275 |
|
} |
| 276 |
|
|
| 277 |
|
// Share is password protected - check whether the user is permitted to access the share |
| 278 |
|
if ($share->getPassword() !== null && !$this->linkShareAuth($share)) { |
| 279 |
|
return new RedirectResponse($this->urlGenerator->linkToRoute('files_sharing.sharecontroller.authenticate', |
| 280 |
|
['token' => $token])); |
| 281 |
|
} |
| 282 |
|
|
| 283 |
|
if (!$this->validateShare($share)) { |
| 284 |
|
throw new NotFoundException(); |
|
@@ 399-402 (lines=4) @@
|
| 396 |
|
$share = $this->shareManager->getShareByToken($token); |
| 397 |
|
|
| 398 |
|
// Share is password protected - check whether the user is permitted to access the share |
| 399 |
|
if ($share->getPassword() !== null && !$this->linkShareAuth($share)) { |
| 400 |
|
return new RedirectResponse($this->urlGenerator->linkToRoute('files_sharing.sharecontroller.authenticate', |
| 401 |
|
['token' => $token])); |
| 402 |
|
} |
| 403 |
|
|
| 404 |
|
if (($share->getPermissions() & \OCP\Constants::PERMISSION_READ) === 0) { |
| 405 |
|
throw new NotFoundException(); |