Remove admin required for phone delete
This commit is contained in:
parent
5f8f6520ee
commit
379eaa2786
|
@ -88,13 +88,6 @@ class Phone extends \descartes\Controller
|
||||||
return $this->redirect(\descartes\Router::url('Phone', 'list'));
|
return $this->redirect(\descartes\Router::url('Phone', 'list'));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!\controllers\internals\Tool::is_admin())
|
|
||||||
{
|
|
||||||
\FlashMessage\FlashMessage::push('danger', 'Vous devez être administrateur pour supprimer un utilisateur !');
|
|
||||||
|
|
||||||
return $this->redirect(\descartes\Router::url('Phone', 'list'));
|
|
||||||
}
|
|
||||||
|
|
||||||
$ids = $_GET['ids'] ?? [];
|
$ids = $_GET['ids'] ?? [];
|
||||||
foreach ($ids as $id)
|
foreach ($ids as $id)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue