|
| 1 | +<?php |
| 2 | + |
| 3 | +/** |
| 4 | + * ------------------------------------------------------------------------- |
| 5 | + * Metademands plugin for GLPI |
| 6 | + * ------------------------------------------------------------------------- |
| 7 | + * |
| 8 | + * LICENSE |
| 9 | + * |
| 10 | + * This file is part of Metademands. |
| 11 | + * |
| 12 | + * Metademands is free software; you can redistribute it and/or modify |
| 13 | + * it under the terms of the GNU General Public License as published by |
| 14 | + * the Free Software Foundation; either version 2 of the License, or |
| 15 | + * (at your option) any later version. |
| 16 | + * |
| 17 | + * Metademands is distributed in the hope that it will be useful, |
| 18 | + * but WITHOUT ANY WARRANTY; without even the implied warranty of |
| 19 | + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
| 20 | + * GNU General Public License for more details. |
| 21 | + * |
| 22 | + * You should have received a copy of the GNU General Public License |
| 23 | + * along with Metademands. If not, see <http://www.gnu.org/licenses/>. |
| 24 | + * ------------------------------------------------------------------------- |
| 25 | + * @copyright Copyright (C) 2013-2022 by Metademands plugin team. |
| 26 | + * @copyright 2015-2022 Teclib' and contributors. |
| 27 | + * @copyright 2003-2014 by the INDEPNET Development Team. |
| 28 | + * @licence https://www.gnu.org/licenses/gpl-3.0.html |
| 29 | + * @license GPLv2 https://www.gnu.org/licenses/gpl-2.0.html |
| 30 | + * @link https://github.com/pluginsGLPI/Metademands |
| 31 | + * ------------------------------------------------------------------------- |
| 32 | + */ |
| 33 | + |
| 34 | +if (strpos($_SERVER['PHP_SELF'], "showentitymandatoryjustification.php")) { |
| 35 | + include('../../../inc/includes.php'); |
| 36 | + header("Content-Type: text/html; charset=UTF-8"); |
| 37 | + Html::header_nocache(); |
| 38 | +} elseif (!defined('GLPI_ROOT')) { |
| 39 | + die("Sorry. You can't access this file directly"); |
| 40 | +} |
| 41 | + |
| 42 | +if (isset($_POST['entity_selection'])) { |
| 43 | + $entitites_id = $_POST['entity_selection']; |
| 44 | + |
| 45 | + $params['entity_choice'] = $entitites_id; |
| 46 | + $getEntitiesRights = PluginTransferticketentityEntity::checkEntityRight($params); |
| 47 | + |
| 48 | + if ($getEntitiesRights['justification_transfer'] == 1) { |
| 49 | + echo "<span class='text-danger'>"; |
| 50 | + echo " *"; |
| 51 | + echo "</span>"; |
| 52 | + } |
| 53 | +} |
| 54 | + |
0 commit comments