diff --git a/templates/zone.php b/templates/zone.php index 6e979f0..90781c5 100644 --- a/templates/zone.php +++ b/templates/zone.php @@ -512,6 +512,11 @@ + +

DNSSEC is not currently enabled for this zone.

+ + admin) { ?> + dnssec) { ?>

Disable DNSSEC

get('active_user')->get_csrf_field(), ESC_NONE) ?> @@ -532,6 +537,7 @@

+
diff --git a/views/zone.php b/views/zone.php index 6a9528e..6670685 100644 --- a/views/zone.php +++ b/views/zone.php @@ -208,11 +208,11 @@ $zone->process_bulk_json_rrset_update(json_encode($json)); } redirect(); - } elseif(isset($_POST['enable_dnssec'])) { + } elseif(isset($_POST['enable_dnssec']) && $active_user->admin) { $zone->dnssec = 1; $zone->update(); redirect(); - } elseif(isset($_POST['disable_dnssec'])) { + } elseif(isset($_POST['disable_dnssec']) && $active_user->admin) { $zone->dnssec = 0; $zone->update(); redirect();