Bernd Wurst commited on 2018-02-20 11:35:39
Zeige 1 geänderte Dateien mit 1 Einfügungen und 1 Löschungen.
... | ... |
@@ -154,7 +154,7 @@ $domain_in_use = mailman_subdomains($dom->id) || mail_in_use($dom->id) || web_in |
154 | 154 |
if (!$domain_in_use && ($dom->status == 'prereg' || $dom->status == 'pretransfer' || $dom->status == 'transferfailed' || $dom->status == 'external')) { |
155 | 155 |
output('<h4>Domain wieder entfernen</h4>'); |
156 | 156 |
output('<p class="delete">'.internal_link('save', 'Die Domain '.$dom->fqdn.' entfernen', 'action=delete&domain='.$dom->id).'</p>'); |
157 |
-} elseif (have_role(ROLE_CUSTOMER) && config('http.net-apikey') && $dom->provider == 'terions') { |
|
157 |
+} elseif (have_role(ROLE_CUSTOMER) && config('http.net-apikey') && $dom->provider == 'terions' && (!$dom->cancel_date || ($dom->cancel_date > date('Y-m-d')))) { |
|
158 | 158 |
require_once('domainapi.php'); |
159 | 159 |
output('<h4>Domain kündigen</h4>'); |
160 | 160 |
$info = api_download_domain($dom->id); |
161 | 161 |