[freeside-commits] freeside/FS/FS svc_acct.pm, 1.314, 1.315 Conf.pm, 1.462, 1.463
Ivan,,,
ivan at wavetail.420.am
Thu Jun 23 16:19:29 PDT 2011
Update of /home/cvs/cvsroot/freeside/FS/FS
In directory wavetail.420.am:/tmp/cvs-serv12607/FS/FS
Modified Files:
svc_acct.pm Conf.pm
Log Message:
add svc_acct-no_edit_username config, RT#13416
Index: Conf.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/Conf.pm,v
retrieving revision 1.462
retrieving revision 1.463
diff -u -w -d -r1.462 -r1.463
--- Conf.pm 23 Jun 2011 04:08:19 -0000 1.462
+++ Conf.pm 23 Jun 2011 23:19:26 -0000 1.463
@@ -2904,6 +2904,13 @@
},
{
+ 'key' => 'svc_acct-no_edit_username',
+ 'section' => 'shell',
+ 'description' => 'Disallow username editing.',
+ 'type' => 'checkbox',
+ },
+
+ {
'key' => 'zone-underscore',
'section' => 'BIND',
'description' => 'Allow underscores in zone names. As underscores are illegal characters in zone names, this option is not recommended.',
Index: svc_acct.pm
===================================================================
RCS file: /home/cvs/cvsroot/freeside/FS/FS/svc_acct.pm,v
retrieving revision 1.314
retrieving revision 1.315
diff -u -w -d -r1.314 -r1.315
--- svc_acct.pm 21 Jun 2011 01:04:55 -0000 1.314
+++ svc_acct.pm 23 Jun 2011 23:19:26 -0000 1.315
@@ -993,6 +993,10 @@
}
+ return "can't change username"
+ if $old->username ne $new->username
+ && $conf->exists('svc_acct-no_edit_username');
+
#change homdir when we change username
$new->setfield('dir', '') if $old->username ne $new->username;
More information about the freeside-commits
mailing list