Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2019-10-08 12:40:00 +0300
committerJoas Schilling <coding@schilljs.com>2019-10-21 16:12:19 +0300
commit5ab5ff47b8ec489739de70357a865462a4d6fd4c (patch)
tree01568996b128c3a256c5ec5444c6eca7f0755efe /lib/Settings
parentec15df2bc3884cf3fab0a0d9cc206c94a0aedcfd (diff)
Add a setting to disable files and public sharing integration
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Settings')
-rw-r--r--lib/Settings/Admin/GeneralSettings.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/Settings/Admin/GeneralSettings.php b/lib/Settings/Admin/GeneralSettings.php
index e6d2d2f2b..a4ff05ca8 100644
--- a/lib/Settings/Admin/GeneralSettings.php
+++ b/lib/Settings/Admin/GeneralSettings.php
@@ -47,6 +47,8 @@ class GeneralSettings implements ISettings {
*/
public function getForm(): TemplateResponse {
$this->initialStateService->provideInitialState('talk', 'start_calls', (int) $this->config->getAppValue('spreed', 'start_calls', '0'));
+ $this->initialStateService->provideInitialState('talk', 'conversations_files', (int) $this->config->getAppValue('spreed', 'conversations_files', '1'));
+ $this->initialStateService->provideInitialState('talk', 'conversations_files_public_shares', (int) $this->config->getAppValue('spreed', 'conversations_files_public_shares', '1'));
return new TemplateResponse('spreed', 'settings/admin/general-settings', [], '');
}