projects
/
freeside.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
ec0441f
)
prevent accounts which are the target of mail aliases from being deleted
author
ivan
<ivan>
Mon, 17 Jul 2000 10:53:42 +0000
(10:53 +0000)
committer
ivan
<ivan>
Mon, 17 Jul 2000 10:53:42 +0000
(10:53 +0000)
FS/FS/svc_acct.pm
patch
|
blob
|
history
diff --git
a/FS/FS/svc_acct.pm
b/FS/FS/svc_acct.pm
index
5986bff
..
93b657f
100644
(file)
--- a/
FS/FS/svc_acct.pm
+++ b/
FS/FS/svc_acct.pm
@@
-12,6
+12,7
@@
use FS::svc_Common;
use FS::SSH qw(ssh);
use FS::part_svc;
use FS::svc_acct_pop;
use FS::SSH qw(ssh);
use FS::part_svc;
use FS::svc_acct_pop;
+use FS::svc_acct_sm;
@ISA = qw( FS::svc_Common );
@ISA = qw( FS::svc_Common );
@@
-223,6
+224,9
@@
sub delete {
my $self = shift;
my $error;
my $self = shift;
my $error;
+ return "Can't delete an account which has mail aliases pointed to it!"
+ if $self->uid && qsearch( 'svc_acct_sm', { 'domuid' => $self->uid } );
+
local $SIG{HUP} = 'IGNORE';
local $SIG{INT} = 'IGNORE';
local $SIG{QUIT} = 'IGNORE';
local $SIG{HUP} = 'IGNORE';
local $SIG{INT} = 'IGNORE';
local $SIG{QUIT} = 'IGNORE';
@@
-532,7
+536,7
@@
sub radius_check {
=head1 VERSION
=head1 VERSION
-$Id: svc_acct.pm,v 1.1
1 2000-07-17 10:37:27
ivan Exp $
+$Id: svc_acct.pm,v 1.1
2 2000-07-17 10:53:42
ivan Exp $
=head1 BUGS
=head1 BUGS