From d42e846da7cb2fb915ac5a1a95e9d8dc03522ed9 Mon Sep 17 00:00:00 2001 From: jbousquie Date: Wed, 30 Nov 2016 10:00:18 +0100 Subject: [PATCH] fix niveau --- admin/machine.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/machine.php b/admin/machine.php index df29c7b..d9a4bc8 100644 --- a/admin/machine.php +++ b/admin/machine.php @@ -10,7 +10,7 @@ $username = Username(); // test profil utilisateur $profil = Profil($username); FiltreProfil($profil); -$admin = ($profil == 2); +$admin = ($profil == $niveaux[$roles[3]]); // si le script est appelé sans paramètre, on quitte aussi $host = $_GET['id'];