]> _ Git - fluidbook-toolbox.git/commitdiff
wip #6568 @0.25
authorVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 11 Dec 2023 14:24:46 +0000 (15:24 +0100)
committerVincent Vanwaelscappel <vincent@cubedesigners.com>
Mon, 11 Dec 2023 14:24:46 +0000 (15:24 +0100)
app/Http/Controllers/Admin/Operations/ContentTranslate/ExcelExportOperation.php

index 2fa581285469ef760e405795b2445fcc2fcacf40..3ee76f3a8345e855202fff6554f5de85ef0ae853 100644 (file)
@@ -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');