From 480a8fa79c2ba4760d5803019a6a9b5da115cb13 Mon Sep 17 00:00:00 2001 From: Thierry Bugier Date: Tue, 26 May 2020 14:06:58 +0200 Subject: [PATCH] fix: class should not be accessed directly Signed-off-by: Thierry Bugier --- inc/conditionnable.class.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/conditionnable.class.php b/inc/conditionnable.class.php index 78ff73541..4c5f9e170 100644 --- a/inc/conditionnable.class.php +++ b/inc/conditionnable.class.php @@ -29,6 +29,10 @@ * --------------------------------------------------------------------- */ +if (!defined('GLPI_ROOT')) { + die("Sorry. You can't access this file directly"); +} + trait PluginFormcreatorConditionnable { public function updateConditions($input) {