]> source.dussan.org Git - nextcloud-server.git/commitdiff
add remote share status to the config
authorBjoern Schiessle <schiessle@owncloud.com>
Thu, 26 Mar 2015 17:32:46 +0000 (18:32 +0100)
committerBjoern Schiessle <schiessle@owncloud.com>
Thu, 26 Mar 2015 17:32:46 +0000 (18:32 +0100)
core/js/config.php

index b57289fde489e451c5596a135dd867681f3b56b0..d9a77b368ba06e1ddd7c494b18e84e212ecf43fa 100644 (file)
@@ -58,6 +58,9 @@ if ($defaultExpireDateEnabled) {
        $value = \OCP\Config::getAppValue('core', 'shareapi_enforce_expire_date', 'no');
        $enforceDefaultExpireDate = ($value === 'yes') ? true : false;
 }
+$appConfig = \OC::$server->getAppConfig();
+$result = $appConfig->getValue('files_sharing', 'outgoing_server2server_share_enabled', 'yes');
+$outgoingServer2serverShareEnabled = ($result === 'yes') ? true : false;
 
 $array = array(
        "oc_debug" => (defined('DEBUG') && DEBUG) ? 'true' : 'false',
@@ -110,6 +113,7 @@ $array = array(
                                'enforcePasswordForPublicLink' => \OCP\Util::isPublicLinkPasswordRequired(),
                                'sharingDisabledForUser' => \OCP\Util::isSharingDisabledForUser(),
                                'resharingAllowed' => \OCP\Share::isResharingAllowed(),
+                               'remoteShareAllowed' =>  $outgoingServer2serverShareEnabled
                                )
                        )
        ),