diff options
author | Morris Jobke <hey@morrisjobke.de> | 2020-05-18 20:44:28 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-18 20:44:28 +0300 |
commit | 3e65cc1bba90d7198ccfaa3afcf52459758e171a (patch) | |
tree | 02a70a608a8bde15b2c736e80d80feb1391e349b | |
parent | ca276a9d60c74efcb65fded60ab34cf941ca6f02 (diff) | |
parent | e822c33a90cf2df0c6083192ef044089946315ff (diff) |
Merge pull request #21033 from nextcloud/enh/capabilities_initialstate
Provide capabilities via initialstate
-rw-r--r-- | lib/private/Template/JSConfigHelper.php | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/private/Template/JSConfigHelper.php b/lib/private/Template/JSConfigHelper.php index 7c9abeefa24..385afffdfa6 100644 --- a/lib/private/Template/JSConfigHelper.php +++ b/lib/private/Template/JSConfigHelper.php @@ -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]); |