ninegate
Some checks failed
Cadoles/nineskeletor/pipeline/head There was a failure building this commit

This commit is contained in:
2023-02-01 09:03:27 +01:00
parent fb33724d9b
commit 9554b9cdd3
235 changed files with 2964 additions and 1573 deletions

View File

@ -267,7 +267,7 @@ class PageController extends AbstractController
if ('all' == $access) {
$em->getRepository($this->entity)->getPermission($this->getUser(), $entity, $cansee, $canupdate, $canadd);
if (!$canupdate) {
throw $this->createNotFoundException('Permission denied');
throw $this->createAccessDeniedException('Permission denied');
}
}
@ -343,7 +343,7 @@ class PageController extends AbstractController
if ('all' == $access) {
$em->getRepository($this->entity)->getPermission($this->getUser(), $data, $cansee, $canupdate, $canadd);
if (!$canupdate) {
throw $this->createNotFoundException('Permission denied');
throw $this->createAccessDeniedException('Permission denied');
}
}
@ -383,7 +383,7 @@ class PageController extends AbstractController
if ('all' == $access) {
$em->getRepository($this->entity)->getPermission($this->getUser(), $entity, $cansee, $canupdate, $canadd);
if (!$canupdate) {
throw $this->createNotFoundException('Permission denied');
throw $this->createAccessDeniedException('Permission denied');
}
}