[Pkg-owncloud-commits] [owncloud] 54/86: Add explicit check for groups excluded from sharing
David Prévot
taffit at moszumanska.debian.org
Tue Dec 22 16:52:00 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v8.1.5
in repository owncloud.
commit 2f2e932e0284b748479d2d27770fe603b6493411
Author: Vincent Petry <pvince81 at owncloud.com>
Date: Tue Dec 8 16:48:33 2015 +0100
Add explicit check for groups excluded from sharing
Since isSharable() doesn't do the check for groups excluded from
sharing, adding an explicit check in the sharing code.
---
lib/private/share/share.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/private/share/share.php b/lib/private/share/share.php
index c569a95..b164091 100644
--- a/lib/private/share/share.php
+++ b/lib/private/share/share.php
@@ -623,7 +623,7 @@ class Share extends Constants {
throw new \Exception($message_t);
}
// verify that the user has share permission
- if (!\OC\Files\Filesystem::isSharable($path)) {
+ if (!\OC\Files\Filesystem::isSharable($path) || \OCP\Util::isSharingDisabledForUser()) {
$message = 'You are not allowed to share %s';
$message_t = $l->t('You are not allowed to share %s', [$path]);
\OC_Log::write('OCP\Share', sprintf($message, $path), \OC_Log::ERROR);
--
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