Fixes CrossSiteSearch api permissions

This commit is contained in:
buttle 2021-12-15 10:45:33 +01:00
parent 317d2898b9
commit faa9eda485
2 changed files with 13 additions and 1 deletions

View File

@ -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');
}
}

View File

@ -22,7 +22,7 @@ return [
],
'controllers' => [
'invokables' => [
Controller\ArchiveSiteMetaController::class => Controller\ArchiveSiteMetaController::class,
'Controller\ArchiveSiteMetaController' => Controller\ArchiveSiteMetaController::class
],
],
'view_manager' => [