put the C in ACL here, too
authorjeff <jeff>
Tue, 27 Feb 2007 22:10:25 +0000 (22:10 +0000)
committerjeff <jeff>
Tue, 27 Feb 2007 22:10:25 +0000 (22:10 +0000)
httemplate/config/config-download.cgi

index d4b88de..95a172a 100644 (file)
@@ -12,3 +12,7 @@
 %
 %http_header('Content-Disposition' => "attachment; filename=$name" );
 % print $conf->config_binary($name);
+<%init>
+die "access denied"
+  unless $FS::CurrentUser::CurrentUser->access_right('Configuration');
+</%init>