Don't return links for shared files if disabled

This commit is contained in:
Michael Gapczynski 2013-05-01 21:15:32 -04:00 committed by Morris Jobke
parent 0755aca501
commit 4cf328e3b9
1 changed files with 4 additions and 0 deletions

View File

@ -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)) {