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
+
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();