Merge pull request #21033 from nextcloud/enh/capabilities_initialstate

Provide capabilities via initialstate
This commit is contained in:
Morris Jobke 2020-05-18 19:44:28 +02:00 committed by GitHub
commit 3e65cc1bba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -305,6 +305,7 @@ class JSConfigHelper {
} }
$this->initialStateService->provideInitialState('core', 'config', $config); $this->initialStateService->provideInitialState('core', 'config', $config);
$this->initialStateService->provideInitialState('core', 'capabilities', $capabilities);
// Allow hooks to modify the output values // Allow hooks to modify the output values
\OC_Hook::emit('\OCP\Config', 'js', ['array' => &$array]); \OC_Hook::emit('\OCP\Config', 'js', ['array' => &$array]);