Merge pull request #21033 from nextcloud/enh/capabilities_initialstate
Provide capabilities via initialstate
This commit is contained in:
commit
3e65cc1bba
|
@ -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 New Issue