diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-06-05 13:24:41 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-06-06 09:56:02 +0200 |
commit | 0b2ae314c7ea58c5105070dbcbada2212c3851dc (patch) | |
tree | 93471c4a35f170561065591539bb8b3e03457b96 /apps | |
parent | 60ea4388edb3f3c5aebb3afbedc0ff5c29bc4c7b (diff) | |
download | nextcloud-server-0b2ae314c7ea58c5105070dbcbada2212c3851dc.tar.gz nextcloud-server-0b2ae314c7ea58c5105070dbcbada2212c3851dc.zip |
check if permissions exists
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_sharing/lib/cache.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files_sharing/lib/cache.php b/apps/files_sharing/lib/cache.php index d0919f0dfdc..b2594aa0b4d 100644 --- a/apps/files_sharing/lib/cache.php +++ b/apps/files_sharing/lib/cache.php @@ -94,7 +94,11 @@ class Shared_Cache extends Cache { $data['is_share_mount_point'] = true; } $data['uid_owner'] = $this->storage->getOwner($file); - $data['permissions'] = $data['permissions'] & $this->storage->getPermissions(''); + if (isset($data['permissions'])) { + $data['permissions'] = $data['permissions'] & $this->storage->getPermissions(''); + } else { + $data['permissions'] = $this->storage->getPermissions(''); + } return $data; } } else { |