]> source.dussan.org Git - nextcloud-server.git/commitdiff
Provide capabilities via initialstate 21033/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Mon, 18 May 2020 14:01:54 +0000 (16:01 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Mon, 18 May 2020 14:20:25 +0000 (16:20 +0200)
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
lib/private/Template/JSConfigHelper.php

index 7c9abeefa242a28362ce0107577c84be44ef5d4a..385afffdfa6f8e49c7d99de72952063b33c9f921 100644 (file)
@@ -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]);