diff options
author | Michael Gapczynski <mtgap@owncloud.com> | 2013-05-01 21:15:32 -0400 |
---|---|---|
committer | Morris Jobke <morris.jobke@gmail.com> | 2013-10-18 10:34:30 +0200 |
commit | 4cf328e3b941139f3a41a8a3631f3c74544eb094 (patch) | |
tree | 8ce3532ead6c4b607fd4dd98b982b6b8819dad47 /lib | |
parent | 0755aca5018952a93c389be58d18d34d80837700 (diff) | |
download | nextcloud-server-4cf328e3b941139f3a41a8a3631f3c74544eb094.tar.gz nextcloud-server-4cf328e3b941139f3a41a8a3631f3c74544eb094.zip |
Don't return links for shared files if disabled
Diffstat (limited to 'lib')
-rw-r--r-- | lib/public/share.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/lib/public/share.php b/lib/public/share.php index 1b6f5d05f10..2847f9e5ec9 100644 --- a/lib/public/share.php +++ b/lib/public/share.php @@ -960,6 +960,10 @@ class Share { $queryArgs = array($itemType); } } + if (\OC_Appconfig::getValue('core', 'shareapi_allow_links', 'yes') !== 'yes') { + $where .= ' AND `share_type` != ?'; + $queryArgs[] = self::SHARE_TYPE_LINK; + } if (isset($shareType)) { // Include all user and group items if ($shareType == self::$shareTypeUserAndGroups && isset($shareWith)) { |