diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-11-04 20:27:25 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2020-12-07 22:01:34 +0300 |
commit | 768a77afd7ba0550d9c16943050bed476b125d38 (patch) | |
tree | b0da28e2552591a8baabfe268c02fd8e8184bc07 /lib/Controller | |
parent | 6f9ef2b76d3192525f2bb4ef909845787efeb4cc (diff) |
Allow admins to limit the size of attachements
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'lib/Controller')
-rw-r--r-- | lib/Controller/PageController.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/Controller/PageController.php b/lib/Controller/PageController.php index 4577bc983..9be84d4a8 100644 --- a/lib/Controller/PageController.php +++ b/lib/Controller/PageController.php @@ -134,6 +134,7 @@ class PageController extends Controller { $response = new TemplateResponse($this->appName, 'index', [ 'debug' => $this->config->getSystemValue('debug', false), + 'attachment-size-limit' => $this->config->getSystemValue('app.mail.attachment-size-limit', 0), 'app-version' => $this->config->getAppValue('mail', 'installed_version'), 'accounts' => base64_encode(json_encode($accountsJson)), 'external-avatars' => $this->preferences->getPreference('external-avatars', 'true'), |