import torrus 1.0.9
[freeside.git] / httemplate / edit / process / access_group.html
1 <% include( 'elements/process.html',
2                'table'       => 'access_group',
3                'viewall_dir' => 'browse',
4                'process_m2m' => { 'link_table'   => 'access_groupagent',
5                                   'target_table' => 'agent',
6                                 },
7                'process_m2name' => {
8                      'link_table'   => 'access_right',
9                      'link_static'  => { 'righttype' => 'FS::access_group', },
10                      'num_col'      => 'rightobjnum',
11                      'name_col'     => 'rightname',
12                      'names_list'   => [ FS::AccessRight->rights() ],
13                      'param_style'  => 'link_table.value checkboxes',
14                },
15            )
16 %>
17 <%init>
18
19 die "access denied"
20   unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
21
22 if ( FS::Conf->new->exists('disable_acl_changes') ) {
23   errorpage('ACL changes disabled in public demo.');
24   die "shouldn't be reached";
25 }
26
27 </%init>