mirror of
https://github.com/RaspbianFrance/raspisms.git
synced 2025-06-07 15:16:27 +02:00
Remove admin required for phone delete
This commit is contained in:
parent
5f8f6520ee
commit
379eaa2786
1 changed files with 0 additions and 7 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue