Bug d'édition de sous domaine quand ni admin ni admin en train d'usurper une identité

This commit is contained in:
Alan Garcia 2013-04-15 08:01:15 +00:00
parent 962483220f
commit d768d03839
1 changed files with 6 additions and 6 deletions

View File

@ -38,18 +38,18 @@ getFields($fields);
$dom->lock();
$dt=$dom->domains_type_lst();
if (!$isinvited && $dt[strtolower($type)]["enable"] != "ALL" ) {
__("This page is restricted to authorized staff");
exit();
}
if (!isset($noread) || !$noread) {
if (!$r=$dom->get_sub_domain_all($sub_domain_id)) {
$error=$err->errstr();
}
}
$dt=$dom->domains_type_lst();
if (!$isinvited && $dt[strtolower($r['type'])]["enable"] != "ALL" ) {
__("This page is restricted to authorized staff");
exit();
}
$domroot=$dom->get_domain_all($r['domain']);
echo "<h3>";