mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-04-21 08:56:27 +02:00
to keep
This commit is contained in:
parent
65dacb5302
commit
4c27d8ccf2
13 changed files with 121 additions and 137 deletions
|
@ -213,7 +213,7 @@ namespace controllers\publics;
|
|||
}
|
||||
|
||||
|
||||
if ($origin && !$this->internal_phone->get_by_number_and_user($origin, $_SESSION['user']['id']))
|
||||
if ($origin && !$this->internal_phone->get_by_number_for_user($id_user, $origin))
|
||||
{
|
||||
\FlashMessage\FlashMessage::push('danger', 'Ce numéro n\'existe pas ou vous n\'en êtes pas propriétaire.');
|
||||
return $this->redirect(\descartes\Router::url('Scheduled', 'add'));
|
||||
|
@ -307,7 +307,7 @@ namespace controllers\publics;
|
|||
}
|
||||
|
||||
|
||||
if ($origin && !$this->internal_phone->get_by_number_and_user($origin, $_SESSION['user']['id']))
|
||||
if ($origin && !$this->internal_phone->get_by_number_for_user($id_user, $origin))
|
||||
{
|
||||
\FlashMessage\FlashMessage::push('danger', 'Ce numéro n\'existe pas ou vous n\'en êtes pas propriétaire.');
|
||||
return $this->redirect(\descartes\Router::url('Scheduled', 'add'));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue