From f5df53323d55c694f6a550e169dbcff7b7ee4db8 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Mon, 15 Apr 2013 08:04:54 +0000 Subject: [PATCH] =?UTF-8?q?Probleme=20de=20suppression=20de=20sous-domaine?= =?UTF-8?q?s=20lors=20d'usurpation=20d'identit=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bureau/admin/dom_subdel.php | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/bureau/admin/dom_subdel.php b/bureau/admin/dom_subdel.php index 5e84ad55..74d3fd5f 100644 --- a/bureau/admin/dom_subdel.php +++ b/bureau/admin/dom_subdel.php @@ -35,19 +35,18 @@ $fields = array ( ); getFields($fields); -$dt=$dom->domains_type_lst(); -if (!$isinvited && $dt[strtolower($type)]["enable"] != "ALL" ) { - __("This page is restricted to authorized staff"); - exit(); -} - - $dom->lock(); if (!$r=$dom->get_sub_domain_all($sub_domain_id)) { $error=$err->errstr(); } $dom->unlock(); +$dt=$dom->domains_type_lst(); +if (!$isinvited && $dt[strtolower($r['type'])]["enable"] != "ALL" ) { + __("This page is restricted to authorized staff"); + exit(); +} + ?>

: