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(); +} + ?>