mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-15 14:03:27 +00:00
Fix available download elements
This commit is contained in:
@@ -82,11 +82,6 @@ class record_exportElement extends record_adapter
|
|||||||
|
|
||||||
$user = User_Adapter::getInstance($session->get_usr_id(), $appbox);
|
$user = User_Adapter::getInstance($session->get_usr_id(), $appbox);
|
||||||
|
|
||||||
if (isset($sd['document']) &&
|
|
||||||
($user->ACL()->has_right_on_base($this->get_base_id(), 'candwnldhd') ||
|
|
||||||
$user->ACL()->has_preview_grant($this))
|
|
||||||
)
|
|
||||||
{
|
|
||||||
$subdefgroups = $appbox->get_databox($sbas_id)->get_subdef_structure();
|
$subdefgroups = $appbox->get_databox($sbas_id)->get_subdef_structure();
|
||||||
|
|
||||||
$subdefs = array();
|
$subdefs = array();
|
||||||
@@ -226,7 +221,6 @@ class record_exportElement extends record_adapter
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$xml = $this->get_xml();
|
$xml = $this->get_xml();
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user