Skip to content
Snippets Groups Projects
Commit 4cf328e3 authored by Michael Gapczynski's avatar Michael Gapczynski Committed by Morris Jobke
Browse files

Don't return links for shared files if disabled

parent 0755aca5
No related branches found
No related tags found
No related merge requests found
......@@ -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)) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment