blob: 36c64d11a2d2ae3895a649276a87ae4529919cce (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
<& 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>
|