From 0ea8ab59f654d59af5d75759b2c4cedace4e5e2f Mon Sep 17 00:00:00 2001 From: tofulm Date: Tue, 11 Feb 2020 21:53:20 +0100 Subject: [PATCH] =?UTF-8?q?Maintenant=20que=20le=20plugin=20ajoute=20un=20?= =?UTF-8?q?champ=20boss=20dans=20spip=5Fauteurs=20et=20une=20autorisation?= =?UTF-8?q?=20boss,=20on=20ajoute=20ce=20test=20dans=20notre=20fonction.?= =?UTF-8?q?=20On=20le=20place=20dans=20notre=20if=20$secret,=20pour=20pouv?= =?UTF-8?q?oir=20le=20d=C3=A9sactiver=20via=20notre=204e=20arg?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/tester_autorisation.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/tester_autorisation.php b/inc/tester_autorisation.php index 41d42b8..3dd6643 100644 --- a/inc/tester_autorisation.php +++ b/inc/tester_autorisation.php @@ -11,6 +11,9 @@ function tester_autorisation($faire, $type, $qui, $secret = true) { } if ($secret) { + if ($qui['boss'] === "oui") { + return true; + } if (pipeline('super_autorisation',$qui)) { return true; }