diff --git a/scripts/AfterInstall.php b/scripts/AfterInstall.php index 6a8e87d..bef0447 100644 --- a/scripts/AfterInstall.php +++ b/scripts/AfterInstall.php @@ -72,7 +72,10 @@ class AfterInstall 'content' => $row['content'] ?? '', 'isActive' => true, ]); - $entityManager->saveEntity($entity); + // skipAll bypasses beforeSave hooks that require a logged-in user + // service (install runs without a session) and ACL checks (we're + // seeding firm-wide defaults; no user is implicated). + $entityManager->saveEntity($entity, ['skipAll' => true]); $created++; }