diff options
author | Bjoern Schiessle <schiessle@owncloud.com> | 2014-06-13 12:43:37 +0200 |
---|---|---|
committer | Bjoern Schiessle <schiessle@owncloud.com> | 2014-06-14 10:22:38 +0200 |
commit | 3bf7b54cd59836165fd9ddb406cf1b56ded84923 (patch) | |
tree | da8859562de8d0eebdf7f6e5173a27a9c561ab12 /apps/files_sharing/ajax/external.php | |
parent | 84a651e46deff5fe577ed564e5826ff24c18f9a5 (diff) | |
download | nextcloud-server-3bf7b54cd59836165fd9ddb406cf1b56ded84923.tar.gz nextcloud-server-3bf7b54cd59836165fd9ddb406cf1b56ded84923.zip |
block server-to-server share if files_external is not activates, can be reverted once we moved to the webdav implementation in core
Diffstat (limited to 'apps/files_sharing/ajax/external.php')
-rw-r--r-- | apps/files_sharing/ajax/external.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/apps/files_sharing/ajax/external.php b/apps/files_sharing/ajax/external.php index 5b4d4656d62..da73310c8df 100644 --- a/apps/files_sharing/ajax/external.php +++ b/apps/files_sharing/ajax/external.php @@ -12,7 +12,10 @@ OCP\JSON::checkLoggedIn(); $l = OC_L10N::get('files_sharing'); // check if server admin allows to mount public links from other servers -if (OCA\Files_Sharing\Helper::isIncomingServer2serverShareEnabled() === false) { +// check if files_external is enabled +// FIXME file_external check no longer needed if we use the webdav implementation from core +if (OCA\Files_Sharing\Helper::isIncomingServer2serverShareEnabled() === false || + \OC_App::isEnabled('files_external') === false) { \OCP\JSON::error(array('data' => array('message' => $l->t('Server to server sharing is not enabled on this server')))); exit(); } |