diff options
author | Thomas Müller <thomas.mueller@tmit.eu> | 2013-07-12 17:03:51 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2013-07-12 17:03:51 +0200 |
commit | fc2d5383119f548f58b5000ebb94422b7feb08a7 (patch) | |
tree | ace8d4a7b0c08618de4daa1f1580ecaac039f26e /apps/files | |
parent | 8ae2066b203e5420fa48d6717192db7e96343a2a (diff) | |
download | nextcloud-server-fc2d5383119f548f58b5000ebb94422b7feb08a7.tar.gz nextcloud-server-fc2d5383119f548f58b5000ebb94422b7feb08a7.zip |
new admin setting added which allows to turn off anonymous uploads
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/index.php | 1 | ||||
-rw-r--r-- | apps/files/templates/index.php | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/apps/files/index.php b/apps/files/index.php index 2338cf439e4..892f75a3513 100644 --- a/apps/files/index.php +++ b/apps/files/index.php @@ -138,5 +138,6 @@ if ($needUpgrade) { $tmpl->assign('allowZipDownload', intval(OCP\Config::getSystemValue('allowZipDownload', true))); $tmpl->assign('usedSpacePercent', (int)$storageInfo['relative']); $tmpl->assign('isPublic', false); + $tmpl->assign('publicUploadEnabled', \OC_Appconfig::getValue('core', 'shareapi_allow_public_upload', 'yes')); $tmpl->printPage(); } diff --git a/apps/files/templates/index.php b/apps/files/templates/index.php index 7d679bc4bf6..dacd2be0b32 100644 --- a/apps/files/templates/index.php +++ b/apps/files/templates/index.php @@ -61,7 +61,7 @@ <div id="emptyfolder"><?php p($l->t('Nothing in here. Upload something!'))?></div> <?php endif; ?> -<table id="filestable"> +<table id="filestable" data-allow-public-upload="<?php p($_['publicUploadEnabled'])?>"> <thead> <tr> <th id='headerName'> |