Skip to content
Snippets Groups Projects
Unverified Commit 3e65cc1b authored by Morris Jobke's avatar Morris Jobke Committed by GitHub
Browse files

Merge pull request #21033 from nextcloud/enh/capabilities_initialstate

Provide capabilities via initialstate
parents ca276a9d e822c33a
No related branches found
No related tags found
No related merge requests found
...@@ -305,6 +305,7 @@ class JSConfigHelper { ...@@ -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]);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment