This commit was manufactured by cvs2svn to create tag 'freeside_2_1_1'.
[freeside.git] / httemplate / edit / process / access_user.html
index 8e7e70a..e6258a9 100644 (file)
@@ -10,7 +10,6 @@
                  'process_m2m' => { 'link_table'   => 'access_usergroup',
                                     'target_table' => 'access_group',
                                   },
-                 'precheck_callback'=> \&precheck_callback,
              )
 %>
 %   }
@@ -24,13 +23,4 @@ if ( FS::Conf->new->exists('disable_acl_changes') ) {
   die "shouldn't be reached";
 }
 
-sub precheck_callback {
-  my $cgi = shift;
-  my $o = FS::access_user->new({username => $cgi->param('username')});
-  if( $o->is_system_user and !$cgi->param('usernum') ) {
-    $cgi->param('username','');
-    return "username '".$o->username."' reserved for system account."
-  }
-  return '';
-}
 </%init>