update account view and edit: convert to proper templates, make sure usage informatio...
[freeside.git] / FS / FS / svc_acct.pm
index 4a61810..167fcee 100644 (file)
@@ -467,7 +467,14 @@ sub replace {
   {
     #no warnings 'numeric';  #alas, a 5.006-ism
     local($^W) = 0;
-    return "Can't change uid!" if $old->uid != $new->uid;
+
+    foreach my $xid (qw( uid gid )) {
+
+      return "Can't change $xid!"
+        if ! $conf->exists("svc_acct-edit_$xid")
+           && $old->$xid() != $new->$xid();
+    }
+
   }
 
   #change homdir when we change username