ninegate
Some checks failed
Cadoles/nineskeletor/pipeline/head There was a failure building this commit
Some checks failed
Cadoles/nineskeletor/pipeline/head There was a failure building this commit
This commit is contained in:
@ -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');
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user