[Pkg-owncloud-commits] [owncloud] 314/394: Add create permission, fixes #780
David Prévot
taffit at alioth.debian.org
Fri Nov 8 23:12:38 UTC 2013
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to annotated tag v4.5.10
in repository owncloud.
commit 324922818d703b15e1be5609cd1f641d6986e752
Author: Thomas Mueller <thomas.mueller at tmit.eu>
Date: Mon Jan 28 08:57:38 2013 +0100
Add create permission, fixes #780
---
apps/files/index.php | 3 +++
1 file changed, 3 insertions(+)
diff --git a/apps/files/index.php b/apps/files/index.php
index 1e28a43..71c5d72 100644
--- a/apps/files/index.php
+++ b/apps/files/index.php
@@ -90,6 +90,9 @@ $freeSpace=max($freeSpace,0);
$maxUploadFilesize = min($maxUploadFilesize ,$freeSpace);
$permissions = OCP\Share::PERMISSION_READ;
+if (OC_Filesystem::isCreatable($dir . '/')) {
+ $permissions |= OCP\Share::PERMISSION_CREATE;
+}
if (OC_Filesystem::isUpdatable($dir.'/')) {
$permissions |= OCP\Share::PERMISSION_UPDATE;
}
--
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