delete_record.php
changeset 139 98ce0ffae5b8
parent 126 cb06e3e29ed8
child 140 e68c3d6094d1
--- a/delete_record.php	Fri Apr 11 13:33:30 2008 +0000
+++ b/delete_record.php	Wed Apr 16 17:53:40 2008 +0000
@@ -36,7 +36,8 @@
 elseif (verify_permission('zone_content_edit_own')) { $perm_content_edit = "own" ; }
 else { $perm_content_edit = "none" ; }
 
-$user_is_zone_owner = verify_user_is_owner_zoneid($_GET["domain"]);
+$zid = get_zone_id_from_record_id($_GET['id']);
+$user_is_zone_owner = verify_user_is_owner_zoneid($zid);
 
 if ($record_id == "-1" ) {
 	error(ERR_INV_INPUT);