[freeside-commits] freeside/httemplate/edit/process access_group.html, 1.3, 1.3.2.1

Ivan,,, ivan at wavetail.420.am
Sat May 17 23:50:37 PDT 2008


Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv26240/httemplate/edit/process

Modified Files:
      Tag: FREESIDE_1_7_BRANCH
	access_group.html 
Log Message:
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

Index: access_group.html
===================================================================
RCS file: /home/cvs/cvsroot/freeside/httemplate/edit/process/access_group.html,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -u -d -r1.3 -r1.3.2.1
--- access_group.html	23 Aug 2006 22:25:37 -0000	1.3
+++ access_group.html	18 May 2008 06:50:35 -0000	1.3.2.1
@@ -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',
@@ -13,3 +16,12 @@
                },
            )
 %>
+% }
+<%init>
+
+die "access denied"
+  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+
+my $conf = new FS::Conf;
+
+</%init>



More information about the freeside-commits mailing list