X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Faccess_group.html;h=2d125c3875d7b1208e2c0255942be40192d1e5cb;hb=7aef2e455fe8a4722036f231ee8609ac63b2a9c9;hp=9bb9d1dda0b49fb80876520a58eaf7f062dfcf88;hpb=c738a3c4923774b64960aa87fa58bd0751487edb;p=freeside.git diff --git a/httemplate/edit/process/access_group.html b/httemplate/edit/process/access_group.html index 9bb9d1dda..2d125c387 100644 --- a/httemplate/edit/process/access_group.html +++ b/httemplate/edit/process/access_group.html @@ -1,4 +1,4 @@ -<%= include( 'elements/process.html', +<% include( 'elements/process.html', 'table' => 'access_group', 'viewall_dir' => 'browse', 'process_m2m' => { 'link_table' => 'access_groupagent', @@ -10,6 +10,18 @@ '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"; +} + +