mirror of
https://github.com/nextcloud/server.git
synced 2026-04-22 14:50:17 -04:00
Provide capabilities via initialstate
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
72cd146322
commit
e822c33a90
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