mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-06 07:04:57 +00:00
filter out documents on Dashboard which cannot be read
This commit is contained in:
parent
d6568bf62e
commit
60410708de
|
@ -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
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue
Block a user