mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Merge pull request #21033 from nextcloud/enh/capabilities_initialstate
Provide capabilities via initialstate
This commit is contained in:
commit
3e65cc1bba
1 changed files with 1 additions and 0 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Reference in a new issue