X-Git-Url: http://git.freeside.biz/gitweb/?a=blobdiff_plain;f=httemplate%2Fedit%2Fprocess%2Faccess_group.html;h=2d125c3875d7b1208e2c0255942be40192d1e5cb;hb=b71b1576c68bc40ad26592b354feace37a029f0e;hp=ab25cb3a230c341e1bfb680381be1d05aa494207;hpb=63a268637b2d51a8766412617724b9436439deb6;p=freeside.git diff --git a/httemplate/edit/process/access_group.html b/httemplate/edit/process/access_group.html index ab25cb3a2..2d125c387 100644 --- a/httemplate/edit/process/access_group.html +++ b/httemplate/edit/process/access_group.html @@ -1,6 +1,3 @@ -% if ( $conf->exists('disable_acl_changes') ) { - ACL changes disabled in public demo. -% } else { <% include( 'elements/process.html', 'table' => 'access_group', 'viewall_dir' => 'browse', @@ -17,12 +14,14 @@ }, ) %> -% } <%init> die "access denied" unless $FS::CurrentUser::CurrentUser->access_right('Configuration'); -my $conf = new FS::Conf; +if ( FS::Conf->new->exists('disable_acl_changes') ) { + errorpage('ACL changes disabled in public demo.'); + die "shouldn't be reached"; +}