diff options
author | brantje <brantje@gmail.com> | 2016-10-12 20:01:26 +0300 |
---|---|---|
committer | brantje <brantje@gmail.com> | 2016-10-12 20:07:46 +0300 |
commit | 0d7cf6e055cd0424e8b7c6e065350dc7face16e1 (patch) | |
tree | 25df9fdc79611e7319713b1b7fda9c18400ac19c /controller | |
parent | 82314fadc36c22fa77f5141206dc7a1f1180a8ca (diff) |
Download files from link shared credential
Add missing ;
Diffstat (limited to 'controller')
-rw-r--r-- | controller/sharecontroller.php | 4 |
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 { |