diff options
author | Roeland Jago Douma <roeland@famdouma.nl> | 2020-05-18 16:01:54 +0200 |
---|---|---|
committer | Roeland Jago Douma <roeland@famdouma.nl> | 2020-05-18 16:20:25 +0200 |
commit | e822c33a90cf2df0c6083192ef044089946315ff (patch) | |
tree | d596ae51e89fb562f382909d3b5d4597d735e302 /lib/private/Template | |
parent | 72cd146322797baca93d2c23ec2fe609d7b534b8 (diff) | |
download | nextcloud-server-e822c33a90cf2df0c6083192ef044089946315ff.tar.gz nextcloud-server-e822c33a90cf2df0c6083192ef044089946315ff.zip |
Provide capabilities via initialstate
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
Diffstat (limited to 'lib/private/Template')
-rw-r--r-- | lib/private/Template/JSConfigHelper.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Template/JSConfigHelper.php b/lib/private/Template/JSConfigHelper.php index 7c9abeefa24..385afffdfa6 100644 --- a/lib/private/Template/JSConfigHelper.php +++ b/lib/private/Template/JSConfigHelper.php @@ -305,6 +305,7 @@ class JSConfigHelper { } $this->initialStateService->provideInitialState('core', 'config', $config); + $this->initialStateService->provideInitialState('core', 'capabilities', $capabilities); // Allow hooks to modify the output values \OC_Hook::emit('\OCP\Config', 'js', ['array' => &$array]); |