Skip to content

Commit

Permalink
init ACLs in CLI
Browse files Browse the repository at this point in the history
When using the text renderer, we might execute syntax plugins that check
ACLs. We don't have a user when running the CLI but we want to index
everything an anonymous user would be able to see. For that the ACLs
need to be loaded.
  • Loading branch information
splitbrain committed Jun 17, 2024
1 parent 1816958 commit e125188
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cli.php
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ protected function setup(Options $options)
protected function main(Options $options)
{
parent::main($options);
auth_setup(); // make sure ACLs are initialized

$model = $options->getOpt('model');
if ($model) {
Expand Down

0 comments on commit e125188

Please sign in to comment.