aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBjoern Schiessle <schiessle@owncloud.com>2015-03-26 18:32:46 +0100
committerBjoern Schiessle <schiessle@owncloud.com>2015-03-26 18:32:46 +0100
commitaab5f6b6df64001338d3214ece31b90251f13106 (patch)
tree30d7b7b449906a7b1b68191c6c85617e55cc38fe
parentd32e3870d21c8a65e822212505213755a338e97a (diff)
downloadnextcloud-server-aab5f6b6df64001338d3214ece31b90251f13106.tar.gz
nextcloud-server-aab5f6b6df64001338d3214ece31b90251f13106.zip
add remote share status to the config
-rw-r--r--core/js/config.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/core/js/config.php b/core/js/config.php
index b57289fde48..d9a77b368ba 100644
--- a/core/js/config.php
+++ b/core/js/config.php
@@ -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
)
)
),