Bug d'édition de sous domaine quand ni admin ni admin en train d'usurper une identité
This commit is contained in:
parent
962483220f
commit
d768d03839
|
@ -38,18 +38,18 @@ getFields($fields);
|
||||||
|
|
||||||
$dom->lock();
|
$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 (!isset($noread) || !$noread) {
|
||||||
if (!$r=$dom->get_sub_domain_all($sub_domain_id)) {
|
if (!$r=$dom->get_sub_domain_all($sub_domain_id)) {
|
||||||
$error=$err->errstr();
|
$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']);
|
$domroot=$dom->get_domain_all($r['domain']);
|
||||||
|
|
||||||
echo "<h3>";
|
echo "<h3>";
|
||||||
|
|
Loading…
Reference in New Issue