[freeside-commits] freeside/httemplate/edit/process svc_broadband.cgi, 1.8, 1.9
Mark Wells
mark at wavetail.420.am
Thu Nov 10 13:40:07 PST 2011
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv22579/httemplate/edit/process
Modified Files:
svc_broadband.cgi
Log Message:
RADIUS groups for svc_broadband, #14695
Index: svc_broadband.cgi
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/svc_broadband.cgi,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -w -d -r1.8 -r1.9
--- svc_broadband.cgi 28 Jun 2008 19:25:24 -0000 1.8
+++ svc_broadband.cgi 10 Nov 2011 21:40:05 -0000 1.9
@@ -1,8 +1,20 @@
-<% include('elements/svc_Common.html', 'table' => 'svc_broadband') %>
+<& elements/svc_Common.html,
+ table => 'svc_broadband',
+ fields => [ fields('svc_broadband'), 'usergroup' ],
+ precheck_callback => \&precheck,
+&>
<%init>
+# for historical reasons, process_m2m for usergroup tables is done
+# in the svc_x::insert/replace/delete methods, not here
my $curuser = $FS::CurrentUser::CurrentUser;
die "access denied"
unless $curuser->access_right('Provision customer service'); #something else more specific?
+sub precheck {
+ my $cgi = shift;
+ $cgi->param("usergroup", [ $cgi->param('usergroup') ]);
+ ''
+}
+
</%init>
More information about the freeside-commits
mailing list