diff options
author | fenn-cs <fenn25.fn@gmail.com> | 2024-01-31 20:38:34 +0100 |
---|---|---|
committer | fenn-cs <fenn25.fn@gmail.com> | 2024-02-03 20:31:03 +0100 |
commit | d36c002305b9584cbbf8b20b6f0aa3b56f8db3d7 (patch) | |
tree | 98bbcc93f18be1bd7513f90161fc2d09a306c86a /apps/files_sharing/lib | |
parent | 61adb716fe1efbb2fab113791b58787390902a8b (diff) | |
download | nextcloud-server-d36c002305b9584cbbf8b20b6f0aa3b56f8db3d7.tar.gz nextcloud-server-d36c002305b9584cbbf8b20b6f0aa3b56f8db3d7.zip |
Use `@nextcloud/capabilities` to obtain share api defaults
- Remove redundant initial state added
- Call `getCapabilities()` in share config file.
Signed-off-by: fenn-cs <fenn25.fn@gmail.com>
Diffstat (limited to 'apps/files_sharing/lib')
-rw-r--r-- | apps/files_sharing/lib/Listener/LoadSidebarListener.php | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/apps/files_sharing/lib/Listener/LoadSidebarListener.php b/apps/files_sharing/lib/Listener/LoadSidebarListener.php index c271d1db71f..7a36551358e 100644 --- a/apps/files_sharing/lib/Listener/LoadSidebarListener.php +++ b/apps/files_sharing/lib/Listener/LoadSidebarListener.php @@ -48,12 +48,5 @@ class LoadSidebarListener implements IEventListener { } Util::addScript(Application::APP_ID, 'files_sharing_tab', 'files'); - - $shareConfig = [ - 'allowPublicUploads' => $this->shareManager->shareApiLinkAllowPublicUpload(), - 'defaultPermissions' => $this->shareManager->shareApiDefaultPermissions(), - ]; - - $this->initialState->provideInitialState('shareConfig', $shareConfig); } } |