]> source.dussan.org Git - nextcloud-server.git/commitdiff
Do not register share menu in cases where the files app has not been registered yet
authorJulius Härtl <jus@bitgrid.net>
Thu, 3 Dec 2020 15:08:41 +0000 (16:08 +0100)
committerJulius Härtl <jus@bitgrid.net>
Mon, 14 Dec 2020 10:10:59 +0000 (11:10 +0100)
Signed-off-by: Julius Härtl <jus@bitgrid.net>
apps/files_sharing/lib/AppInfo/Application.php

index fd71f58f121001f33c624bb17418aa12e0330d95..078a0a5f59deeb52acf19f7cf8a2a8fe96cea8ca 100644 (file)
@@ -168,7 +168,7 @@ class Application extends App {
        protected function setupSharingMenus() {
                $config = \OC::$server->getConfig();
 
-               if ($config->getAppValue('core', 'shareapi_enabled', 'yes') !== 'yes') {
+               if ($config->getAppValue('core', 'shareapi_enabled', 'yes') !== 'yes' || !class_exists('\OCA\Files\App')) {
                        return;
                }