diff options
| author | mark <mark> | 2011-11-10 21:40:25 +0000 |
|---|---|---|
| committer | mark <mark> | 2011-11-10 21:40:25 +0000 |
| commit | 7aef2e455fe8a4722036f231ee8609ac63b2a9c9 (patch) | |
| tree | e54f586e587f6b58ae2be2e342d779974212a062 /httemplate/edit/process | |
| parent | bf8ba5bcc6d128c3ab8e498723257ee54e1db0a7 (diff) | |
RADIUS groups for svc_broadband, #14695
Diffstat (limited to 'httemplate/edit/process')
| -rw-r--r-- | httemplate/edit/process/svc_broadband.cgi | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/httemplate/edit/process/svc_broadband.cgi b/httemplate/edit/process/svc_broadband.cgi index d5c9820bb..36c64d11a 100644 --- a/httemplate/edit/process/svc_broadband.cgi +++ b/httemplate/edit/process/svc_broadband.cgi @@ -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> |
