Don't return links for shared files if disabled
This commit is contained in:
parent
0755aca501
commit
4cf328e3b9
1 changed files with 4 additions and 0 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue