Remove "recent files" from Drupal FileDepot module
1 answer
In sites/all/modules/filedepot/lib-ajaxserver.php
I added 1=2 and
to sql, you can test it with the original one. it worked for me
// Default view - latest files
if (!empty($filedepot->allowableViewFoldersSql)) {
if ($filedepot->ogmode_enabled) {
if (!empty($filedepot->allowableGroupViewFoldersSql)) {
$sql .= "WHERE 1=2 and file.cid in ({$filedepot->allowableGroupViewFoldersSql}) ";
}
else {
$sql .= "WHERE 1=2 and file.cid in ({$filedepot->allowableViewFoldersSql}) ";
}
}
elseif (!user_access('administer filedepot', $user)) {
if (empty($filedepot->allowableViewFoldersSql)) {
$sql .= "WHERE 1=2 and file.cid is NULL ";
}
else {
$sql .= "WHERE 1=2 and file.cid in ({$filedepot->allowableViewFoldersSql}) ";
}
}
}
+2
source to share