summaryrefslogtreecommitdiff
path: root/httemplate/edit/process
diff options
context:
space:
mode:
authorivan <ivan>2008-05-18 06:50:07 +0000
committerivan <ivan>2008-05-18 06:50:07 +0000
commit310971fea20ca8ced4c810c2694b392a8806180d (patch)
tree0d23e1039e895d14a31532c50e736120cdf89f76 /httemplate/edit/process
parentb8d03e480cf0798c30d6d8e9ec6cf53d8f419043 (diff)
add a config value for disabling the ACLs... this should be good for a demo in 1.7, 1.9 will need some way to disable ACL changes from OUTSIDE the db
Diffstat (limited to 'httemplate/edit/process')
-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>