[Pkg-owncloud-commits] [owncloud] 32/129: detect object homestorage in share code
David Prévot
taffit at moszumanska.debian.org
Thu Nov 5 01:04:20 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to branch stable8
in repository owncloud.
commit 970a9c23822a633be3b2e267dc39ef1ddc6b4abf
Author: Robin Appelman <icewind at owncloud.com>
Date: Mon Oct 12 17:34:51 2015 +0200
detect object homestorage in share code
---
lib/private/share/share.php | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index c64bb31..c87e694 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -2632,7 +2632,9 @@ class Share extends Constants {
*/
private static function isFileReachable($path, $ownerStorageId) {
// if outside the home storage, file is always considered reachable
- if (!(substr($ownerStorageId, 0, 6) === 'home::')) {
+ if (!(substr($ownerStorageId, 0, 6) === 'home::' ||
+ substr($ownerStorageId, 0, 13) === 'object::user:'
+ )) {
return true;
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git
More information about the Pkg-owncloud-commits
mailing list