for now we disable public upload in case encryption is enabled
This commit is contained in:
parent
7d3490036c
commit
f726de3cab
|
@ -147,7 +147,11 @@ if (isset($path)) {
|
||||||
$tmpl->assign('mimetype', \OC\Files\Filesystem::getMimeType($path));
|
$tmpl->assign('mimetype', \OC\Files\Filesystem::getMimeType($path));
|
||||||
$tmpl->assign('fileTarget', basename($linkItem['file_target']));
|
$tmpl->assign('fileTarget', basename($linkItem['file_target']));
|
||||||
$tmpl->assign('dirToken', $linkItem['token']);
|
$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('uploadMaxFilesize', $maxUploadFilesize);
|
||||||
$tmpl->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
|
$tmpl->assign('uploadMaxHumanFilesize', OCP\Util::humanFileSize($maxUploadFilesize));
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue