delete_record.php
changeset 139 98ce0ffae5b8
parent 126 cb06e3e29ed8
child 140 e68c3d6094d1
equal deleted inserted replaced
138:3e36ebbfe048 139:98ce0ffae5b8
    34 
    34 
    35 if (verify_permission('zone_content_edit_others')) { $perm_content_edit = "all" ; }
    35 if (verify_permission('zone_content_edit_others')) { $perm_content_edit = "all" ; }
    36 elseif (verify_permission('zone_content_edit_own')) { $perm_content_edit = "own" ; }
    36 elseif (verify_permission('zone_content_edit_own')) { $perm_content_edit = "own" ; }
    37 else { $perm_content_edit = "none" ; }
    37 else { $perm_content_edit = "none" ; }
    38 
    38 
    39 $user_is_zone_owner = verify_user_is_owner_zoneid($_GET["domain"]);
    39 $zid = get_zone_id_from_record_id($_GET['id']);
       
    40 $user_is_zone_owner = verify_user_is_owner_zoneid($zid);
    40 
    41 
    41 if ($record_id == "-1" ) {
    42 if ($record_id == "-1" ) {
    42 	error(ERR_INV_INPUT);
    43 	error(ERR_INV_INPUT);
    43 } else {
    44 } else {
    44 	if ($confirm == '1') {
    45 	if ($confirm == '1') {