add a config value for disabling the ACLs... this should be good for a demo in 1...
[freeside.git] / httemplate / edit / process / access_group.html
index 581b50f..ab25cb3 100644 (file)
@@ -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',
                },
            )
 %>
+% }
+<%init>
+
+die "access denied"
+  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
+my $conf = new FS::Conf;
+
+</%init>