mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-14 21:43:18 +00:00
PROD - PRINT - PDF - Generated pdf cant be printed even if no password is defined (#4008)
* fix password * owner pass * fix
This commit is contained in:
@@ -49,19 +49,9 @@ class PDFRecords extends PDF
|
||||
$this->thumbnailName = $printer->getThumbnailName();
|
||||
$this->previewName = $printer->getPreviewName();
|
||||
|
||||
$this->pdf->SetProtection([
|
||||
'print',
|
||||
'modify',
|
||||
'copy',
|
||||
'annot-forms',
|
||||
'fill-forms',
|
||||
'extract',
|
||||
'assemble',
|
||||
'print-high',
|
||||
'owner'
|
||||
],
|
||||
$userPassword
|
||||
);
|
||||
if (!empty($userPassword)) {
|
||||
$this->pdf->SetProtection([], $userPassword);
|
||||
}
|
||||
|
||||
$this->pdf->setPrintOwnerUser($app->getAuthenticatedUser());
|
||||
|
||||
|
Reference in New Issue
Block a user