summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/access_group.html
blob: 2d125c3875d7b1208e2c0255942be40192d1e5cb (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
<% 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');

if ( FS::Conf->new->exists('disable_acl_changes') ) {
  errorpage('ACL changes disabled in public demo.');
  die "shouldn't be reached";
}

</%init>