]> source.dussan.org Git - nextcloud-server.git/commitdiff
for now we disable public upload in case encryption is enabled
authorThomas Mueller <thomas.mueller@tmit.eu>
Fri, 28 Jun 2013 14:49:25 +0000 (16:49 +0200)
committerThomas Mueller <thomas.mueller@tmit.eu>
Fri, 28 Jun 2013 14:49:25 +0000 (16:49 +0200)
apps/files_sharing/public.php

index fa8c25fc98d6f4f6d8c2f5faa161d96d20e388cb..ef86013b3e728cacf59ff554f886c648ea98d8b1 100644 (file)
@@ -147,7 +147,11 @@ if (isset($path)) {
                $tmpl->assign('mimetype', \OC\Files\Filesystem::getMimeType($path));
                $tmpl->assign('fileTarget', basename($linkItem['file_target']));
                $tmpl->assign('dirToken', $linkItem['token']);
-               $tmpl->assign('allowPublicUploadEnabled', (($linkItem['permissions'] & OCP\PERMISSION_CREATE) ? true : false ));
+               $allowPublicUploadEnabled = (($linkItem['permissions'] & OCP\PERMISSION_CREATE) ? true : false );
+               if (\OCP\App::isEnabled('files_encryption')) {
+                       $allowPublicUploadEnabled = false;
+               }
+               $tmpl->assign('allowPublicUploadEnabled', $allowPublicUploadEnabled);
                $tmpl->assign('uploadMaxFilesize', $maxUploadFilesize);
                $tmpl->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));