mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-06-18 02:59:27 +00:00
fixed weak access protection
This commit is contained in:
parent
f45f96cad7
commit
c54512cb44
|
@ -230,6 +230,7 @@ class HTTP_WebDAV_Server_LetoDMS extends HTTP_WebDAV_Server
|
||||||
if (get_class($obj) == 'LetoDMS_Core_Folder' && !empty($options["depth"])) {
|
if (get_class($obj) == 'LetoDMS_Core_Folder' && !empty($options["depth"])) {
|
||||||
|
|
||||||
$subfolders = $obj->getSubFolders();
|
$subfolders = $obj->getSubFolders();
|
||||||
|
$subfolders = LetoDMS_Core_DMS::filterAccess($subfolders, $this->user, M_READ);
|
||||||
if ($subfolders) {
|
if ($subfolders) {
|
||||||
// ok, now get all its contents
|
// ok, now get all its contents
|
||||||
foreach($subfolders as $subfolder) {
|
foreach($subfolders as $subfolder) {
|
||||||
|
@ -238,6 +239,7 @@ class HTTP_WebDAV_Server_LetoDMS extends HTTP_WebDAV_Server
|
||||||
// TODO recursion needed if "Depth: infinite"
|
// TODO recursion needed if "Depth: infinite"
|
||||||
}
|
}
|
||||||
$documents = $obj->getDocuments();
|
$documents = $obj->getDocuments();
|
||||||
|
$documents = LetoDMS_Core_DMS::filterAccess($documents, $this->user, M_READ);
|
||||||
if ($documents) {
|
if ($documents) {
|
||||||
// ok, now get all its contents
|
// ok, now get all its contents
|
||||||
foreach($documents as $document) {
|
foreach($documents as $document) {
|
||||||
|
|
Loading…
Reference in New Issue
Block a user