diff options
author | John Molakvoæ <skjnldsv@protonmail.com> | 2022-05-15 10:38:55 +0200 |
---|---|---|
committer | John Molakvoæ <skjnldsv@protonmail.com> | 2024-01-09 10:56:06 +0100 |
commit | 7b6a650b6e09b07d4b85a4ae84eb64a6c32b217f (patch) | |
tree | f5e479b0bca0a027ef289135c8216cda10f82b14 /apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php | |
parent | fdc64ea2f527d25c382901ed906f71fca89fd1b3 (diff) | |
download | nextcloud-server-7b6a650b6e09b07d4b85a4ae84eb64a6c32b217f.tar.gz nextcloud-server-7b6a650b6e09b07d4b85a4ae84eb64a6c32b217f.zip |
feat: public dav endpoint v2
Signed-off-by: John Molakvoæ <skjnldsv@protonmail.com>
Diffstat (limited to 'apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php')
-rw-r--r-- | apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php b/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php index f13a77d9368..7e73f89ad41 100644 --- a/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php +++ b/apps/federatedfilesharing/lib/Controller/MountPublicLinkController.php @@ -31,6 +31,7 @@ */ namespace OCA\FederatedFileSharing\Controller; +use OCA\DAV\Connector\Sabre\PublicAuth; use OCA\FederatedFileSharing\AddressHandler; use OCA\FederatedFileSharing\FederatedShareProvider; use OCP\AppFramework\Controller; @@ -108,7 +109,7 @@ class MountPublicLinkController extends Controller { // make sure that user is authenticated in case of a password protected link $storedPassword = $share->getPassword(); - $authenticated = $this->session->get('public_link_authenticated') === $share->getId() || + $authenticated = $this->session->get(PublicAuth::DAV_AUTHENTICATED) === $share->getId() || $this->shareManager->checkPassword($share, $password); if (!empty($storedPassword) && !$authenticated) { $response = new JSONResponse( |