diff --git a/Module.php b/Module.php index 73eed2c..0aaa643 100644 --- a/Module.php +++ b/Module.php @@ -138,4 +138,16 @@ class Module extends AbstractModule return true; } + /** + * Code to run when first using the module. + * + * @param MvcEvent $event + */ + public function onBootstrap(MvcEvent $event): void + { + parent::onBootstrap($event); + + $acl = $this->getServiceLocator()->get('Omeka\Acl'); + $acl->allow(null, 'Controller\ArchiveSiteMetaController'); + } } diff --git a/config/module.config.php b/config/module.config.php index 020b8b3..9d1e2b6 100644 --- a/config/module.config.php +++ b/config/module.config.php @@ -22,7 +22,7 @@ return [ ], 'controllers' => [ 'invokables' => [ - Controller\ArchiveSiteMetaController::class => Controller\ArchiveSiteMetaController::class, + 'Controller\ArchiveSiteMetaController' => Controller\ArchiveSiteMetaController::class ], ], 'view_manager' => [