diff options
author | Robin Appelman <robin@icewind.nl> | 2021-04-23 17:29:34 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2021-05-12 16:11:28 +0200 |
commit | b1dca57a1ce59bacc4089761275e4366e9760313 (patch) | |
tree | ed79b9ab833ee9af257dc4f0e68afbd28656043c /apps/files/list.php | |
parent | 7e1c842d96cde01ebb6854b3e28fb998006575b2 (diff) | |
download | nextcloud-server-b1dca57a1ce59bacc4089761275e4366e9760313.tar.gz nextcloud-server-b1dca57a1ce59bacc4089761275e4366e9760313.zip |
load share settings from the share manager in more places
Signed-off-by: Robin Appelman <robin@icewind.nl>
Diffstat (limited to 'apps/files/list.php')
-rw-r--r-- | apps/files/list.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/apps/files/list.php b/apps/files/list.php index 52d736516c9..308d149c873 100644 --- a/apps/files/list.php +++ b/apps/files/list.php @@ -22,10 +22,14 @@ * */ +use OCP\Share\IManager; + $config = \OC::$server->getConfig(); $userSession = \OC::$server->getUserSession(); // TODO: move this to the generated config.js -$publicUploadEnabled = $config->getAppValue('core', 'shareapi_allow_public_upload', 'yes'); +/** @var IManager $shareManager */ +$shareManager = \OC::$server->get(IManager::class); +$publicUploadEnabled = $shareManager->shareApiLinkAllowPublicUpload() ? 'yes' : 'no';; $showgridview = $config->getUserValue($userSession->getUser()->getUID(), 'files', 'show_grid', false); $isIE = OC_Util::isIe(); |