Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/passman.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorbrantje <brantje@gmail.com>2016-10-12 20:01:26 +0300
committerbrantje <brantje@gmail.com>2016-10-12 20:07:46 +0300
commit0d7cf6e055cd0424e8b7c6e065350dc7face16e1 (patch)
tree25df9fdc79611e7319713b1b7fda9c18400ac19c /controller
parent82314fadc36c22fa77f5141206dc7a1f1180a8ca (diff)
Download files from link shared credential
Add missing ;
Diffstat (limited to 'controller')
-rw-r--r--controller/sharecontroller.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/controller/sharecontroller.php b/controller/sharecontroller.php
index 23aeb256..24b92f0a 100644
--- a/controller/sharecontroller.php
+++ b/controller/sharecontroller.php
@@ -469,8 +469,8 @@ class ShareController extends ApiController {
} catch (DoesNotExistException $e){
return new NotFoundJSONResponse();
}
-
- $acl = $this->shareService->getACL($this->userId->getUID(), $credential->getGuid());
+ $userId = ($this->userId) ? $this->userId->getUID() : null;
+ $acl = $this->shareService->getACL($userId, $credential->getGuid());
if (!$acl->hasPermission(SharingACL::FILES)){
return new NotFoundJSONResponse();
} else {