diff --git a/CHANGELOG b/CHANGELOG index 652d103f8..2d069ea98 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -4,6 +4,7 @@ - use SeedDMS_Core_File::mimetype() to determine mime type when uploading a file with drag&drop - user images may be 300px height, do not scale them up +- do not show unreadable documents on Dashboard -------------------------------------------------------------------------------- Changes in version 5.1.32 diff --git a/views/bootstrap/class.Dashboard.php b/views/bootstrap/class.Dashboard.php index dc567dd52..bcd52b191 100644 --- a/views/bootstrap/class.Dashboard.php +++ b/views/bootstrap/class.Dashboard.php @@ -77,6 +77,7 @@ class SeedDMS_View_Dashboard extends SeedDMS_Theme_Style { echo $this->contentHeading(getMLText('new_documents')); $documents = $dms->getLatestChanges('newdocuments', mktime(0, 0, 0)-$dayspastdashboard*86400, time()); + $documents = SeedDMS_Core_DMS::filterAccess($documents, $user, M_READ); if (count($documents) > 0) { $this->printList($documents, $previewer); } @@ -101,6 +102,7 @@ class SeedDMS_View_Dashboard extends SeedDMS_Theme_Style { echo $this->contentHeading(getMLText('updated_documents')); $documents = $dms->getLatestChanges('updateddocuments', mktime(0, 0, 0)-$dayspastdashboard*86400, time()); + $documents = SeedDMS_Core_DMS::filterAccess($documents, $user, M_READ); if (count($documents) > 0) { $this->printList($documents, $previewer); } @@ -125,6 +127,7 @@ class SeedDMS_View_Dashboard extends SeedDMS_Theme_Style { echo $this->contentHeading(getMLText('status_change')); $documents = $dms->getLatestChanges('statuschange', mktime(0, 0, 0)-$dayspastdashboard*86400, time()); + $documents = SeedDMS_Core_DMS::filterAccess($documents, $user, M_READ); if (count($documents) > 0) { $this->printList($documents, $previewer); }