summaryrefslogtreecommitdiff
path: root/httemplate/edit/process/access_group.html
diff options
context:
space:
mode:
Diffstat (limited to 'httemplate/edit/process/access_group.html')
-rw-r--r--httemplate/edit/process/access_group.html12
1 files changed, 12 insertions, 0 deletions
diff --git a/httemplate/edit/process/access_group.html b/httemplate/edit/process/access_group.html
index 581b50f9e..ab25cb3a2 100644
--- a/httemplate/edit/process/access_group.html
+++ b/httemplate/edit/process/access_group.html
@@ -1,3 +1,6 @@
+% if ( $conf->exists('disable_acl_changes') ) {
+ ACL changes disabled in public demo.
+% } else {
<% include( 'elements/process.html',
'table' => 'access_group',
'viewall_dir' => 'browse',
@@ -14,3 +17,12 @@
},
)
%>
+% }
+<%init>
+
+die "access denied"
+ unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
+my $conf = new FS::Conf;
+
+</%init>