show empty pic if no access

This commit is contained in:
Uwe Steinmann 2019-11-25 11:52:14 +01:00
parent 5e9a4515b3
commit 28676c8065

View File

@ -49,6 +49,8 @@ if (!is_object($document)) {
}
if ($document->getAccessMode($user) < M_READ) {
header('Content-Type: image/svg+xml');
readfile('../views/'.$theme.'/images/empty.svg');
exit;
}