Skip to content

Commit b6a3e20

Browse files
committed
Also check for non-editable alias domains
1 parent a50302f commit b6a3e20

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

Diff for: manual_records.cgi

+1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ $d = &get_domain($in{'dom'});
99
$d || &error($text{'edit_egone'});
1010
&can_edit_domain($d) || &error($text{'edit_ecannot'});
1111
&can_manual_dns() || &error($text{'mrecords_ecannot'});
12+
&copy_alias_records($d) && &error($text{'records_ecannot2'});
1213

1314
# Get the zone and records
1415
($recs, $file) = &get_domain_dns_records_and_file($d);

Diff for: manual_records_save.cgi

+1
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ require './virtual-server-lib.pl';
88
$d = &get_domain($in{'dom'});
99
$d || &error($text{'edit_egone'});
1010
&can_edit_domain($d) || &error($text{'edit_ecannot'});
11+
&copy_alias_records($d) && &error($text{'records_ecannot2'});
1112
&can_manual_dns() || &error($text{'mrecords_ecannot'});
1213
$in{'data'} =~ s/\r//g;
1314
$in{'data'} =~ /\S/ || &error($text{'mrecords_enone'});

0 commit comments

Comments
 (0)