[freeside-commits] freeside/httemplate/edit access_user.html, 1.11, 1.12
Mark Wells
mark at wavetail.420.am
Mon Oct 4 15:17:24 PDT 2010
Update of /home/cvs/cvsroot/freeside/httemplate/edit
In directory wavetail.420.am:/tmp/cvs-serv20622/httemplate/edit
Modified Files:
access_user.html
Log Message:
fs_ system accounts, RT#8731
Index: access_user.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/access_user.html,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -w -d -r1.11 -r1.12
--- access_user.html 18 May 2010 19:41:09 -0000 1.11
+++ access_user.html 4 Oct 2010 22:17:22 -0000 1.12
@@ -20,9 +20,8 @@
'user_custnum' => 'Customer (optional)',
'disabled' => 'Disable employee',
},
- 'edit_callback' => sub { my( $c, $o ) = @_;
- $o->set('_password', '');
- },
+ 'edit_callback' => \&edit_callback,
+ 'field_callback'=> \&field_callback,
'viewall_dir' => 'browse',
'html_bottom' =>
sub {
@@ -62,4 +61,17 @@
</SCRIPT>
END
+sub edit_callback {
+ my ($c, $o, $f, $opt) = @_;
+ $o->set('_password', '');
+}
+
+sub field_callback {
+ my ($c, $o, $f) = @_;
+ if($f->{'type'} eq 'password' and $o->is_system_user) {
+ $f->{'type'} = 'hidden';
+ $f->{'disabled'} = 1;
+ }
+}
+
</%init>
More information about the freeside-commits
mailing list