From: Vincent Vanwaelscappel Date: Mon, 11 Dec 2023 14:24:46 +0000 (+0100) Subject: wip #6568 @0.25 X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=5c5cb3e122e07eae5f72289f6905ab741682dfb8;p=fluidbook-toolbox.git wip #6568 @0.25 --- diff --git a/app/Http/Controllers/Admin/Operations/ContentTranslate/ExcelExportOperation.php b/app/Http/Controllers/Admin/Operations/ContentTranslate/ExcelExportOperation.php index 2fa581285..3ee76f3a8 100644 --- a/app/Http/Controllers/Admin/Operations/ContentTranslate/ExcelExportOperation.php +++ b/app/Http/Controllers/Admin/Operations/ContentTranslate/ExcelExportOperation.php @@ -37,7 +37,9 @@ trait ExcelExportOperation $worksheet = $xls->getActiveSheet(); $worksheet->setTitle($locale); - $worksheet->getProtection()->setSheet(true); + $protection = $worksheet->getProtection(); + $protection->setSheet(true); + $protection->setPassword('EvaxeT4aj3v&Nh&KnMg'); $xls->getDefaultStyle()->getProtection()->setLocked(false); $worksheet->setCellValueByColumnAndRow(1, 1, 'ID');