diff --git a/bureau/admin/dom_edit.php b/bureau/admin/dom_edit.php
index 5b0d564e..48329520 100644
--- a/bureau/admin/dom_edit.php
+++ b/bureau/admin/dom_edit.php
@@ -126,23 +126,25 @@ for($i=0;$i<$r["nsub"];$i++) {
}
?>
";__("Disable");echo "";
- break;
- case 'ENABLE':
- __("Activation pending");
- break;
- case 'DISABLED':
- __("Disabled");
- echo " ";__("Enable");echo "";
- break;
- case 'DISABLE':
- __("Desactivation pending");
- break;
- }
+ if (!(!$isinvited && $dt[strtolower($r["sub"][$i]["type"])]["enable"] != "ALL" )) {
+ if ( $r['sub'][$i]['web_action'] !='DELETE') {
+ switch ($r['sub'][$i]['enable']) {
+ case 'ENABLED':
+ __("Enabled");
+ echo " ";__("Disable");echo "";
+ break;
+ case 'ENABLE':
+ __("Activation pending");
+ break;
+ case 'DISABLED':
+ __("Disabled");
+ echo " ";__("Enable");echo "";
+ break;
+ case 'DISABLE':
+ __("Desactivation pending");
+ break;
+ }
+ }
}?> |
|