summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/access_group.html
blob: ab25cb3a230c341e1bfb680381be1d05aa494207 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
% if ( $conf->exists('disable_acl_changes') ) {
  ACL changes disabled in public demo.
% } else {
<% include( 'elements/process.html',
               'table'       => 'access_group',
               'viewall_dir' => 'browse',
               'process_m2m' => { 'link_table'   => 'access_groupagent',
                                  'target_table' => 'agent',
                                },
               'process_m2name' => {
                     'link_table'   => 'access_right',
                     'link_static'  => { 'righttype' => 'FS::access_group', },
                     'num_col'      => 'rightobjnum',
                     'name_col'     => 'rightname',
                     'names_list'   => [ FS::AccessRight->rights() ],
                     'param_style'  => 'link_table.value checkboxes',
               },
           )
%>
% }
<%init>

die "access denied"
  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');

my $conf = new FS::Conf;

</%init>