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