Fix #1351 : Substitution files are considered valid for download

This commit is contained in:
Romain Neutron
2013-07-17 19:53:33 +02:00
parent 6d30f9bc9d
commit f51f392bc6

View File

@@ -179,7 +179,7 @@ class record_exportElement extends record_adapter
} }
if ($go_dl[$class]) { if ($go_dl[$class]) {
if (isset($sd[$name]) && is_file($sd[$name]->get_pathfile())) { if (isset($sd[$name]) && $sd[$name]->is_physically_present()) {
if ($class == 'document') { if ($class == 'document') {
if ($this->app['authentication']->getUser()->ACL()->is_restricted_download($this->base_id)) { if ($this->app['authentication']->getUser()->ACL()->is_restricted_download($this->base_id)) {