diff options
Diffstat (limited to 'httemplate/edit/process/access_group.html')
-rw-r--r-- | httemplate/edit/process/access_group.html | 9 |
1 files changed, 4 insertions, 5 deletions
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"; +} </%init> |