Skip to content

Commit

Permalink
Merge branch 'master' into vtk-master
Browse files Browse the repository at this point in the history
  • Loading branch information
Tiddo committed Nov 2, 2024
2 parents 0551a7f + 74d5a3c commit 7964e15
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 7 deletions.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
FROM caddy:2.8.4 AS caddy

# development
FROM composer:2.8.1 AS composer
FROM composer:2.8.2 AS composer

ARG APPLICATION_ENV=development
ENV APPLICATION_ENV=${APPLICATION_ENV}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,18 +101,14 @@ public function onDispatch(MvcEvent $e)
)
) {
$error = $this->error(401, 'You do not have sufficient permissions to access this resource');
if ($result instanceof \Laminas\View\Model\ViewModel) {
$error->setOptions($result->getOptions());
}
$error->setOptions($result->getOptions());
$e->setResult($error);

return $error;
}
} else {
$error = $this->error(401, 'No key or OAuth token was provided or the token was invalid');
if ($result instanceof \Laminas\View\Model\ViewModel) {
$error->setOptions($result->getOptions());
}
$error->setOptions($result->getOptions());
$e->setResult($error);

return $error;
Expand Down

0 comments on commit 7964e15

Please sign in to comment.