[freeside-commits] freeside/httemplate/edit/process access_group.html, 1.4, 1.5
Ivan,,,
ivan at wavetail.420.am
Sat May 17 23:50:09 PDT 2008
Update of /home/cvs/cvsroot/freeside/httemplate/edit/process
In directory wavetail.420.am:/tmp/cvs-serv26182/httemplate/edit/process
Modified Files:
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.4
retrieving revision 1.5
diff -u -d -r1.4 -r1.5
--- access_group.html 1 Aug 2007 22:25:05 -0000 1.4
+++ access_group.html 18 May 2008 06:50:07 -0000 1.5
@@ -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>
More information about the freeside-commits
mailing list