mirror of
https://github.com/alchemy-fr/Phraseanet.git
synced 2025-10-17 06:53:15 +00:00
Regenerate doctrine entities and proxies
This commit is contained in:
@@ -148,7 +148,7 @@ class BasketRepository extends EntityRepository
|
||||
if ($basket->getOwner($app)->get_id() != $user->get_id()) {
|
||||
$participant = false;
|
||||
|
||||
if ($basket->getValidation() && ! $requireOwner) {
|
||||
if ($basket->getValidation() && !$requireOwner) {
|
||||
try {
|
||||
$basket->getValidation()->getParticipant($user, $app);
|
||||
$participant = true;
|
||||
@@ -156,7 +156,7 @@ class BasketRepository extends EntityRepository
|
||||
|
||||
}
|
||||
}
|
||||
if ( ! $participant) {
|
||||
if (!$participant) {
|
||||
throw new AccessDeniedHttpException(_('You have not access to this basket'));
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user