Rerun
authorJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 13 Jul 2009 15:40:55 +0000 (15:40 +0000)
committerJoe Hunt <joe.hunt.consulting@gmail.com>
Mon, 13 Jul 2009 15:40:55 +0000 (15:40 +0000)
CHANGELOG.txt
reporting/includes/excel_report.inc
reporting/includes/pdf_report.inc

index c01f6d5b95de14748e395292f9337d91030f3b61..b6df916222cb47c9603b15baaf5bbe57f255386e 100644 (file)
@@ -21,7 +21,7 @@ $ -> Affected files
 
 13-Jul-2009 Joe Hunt
 + Added Audit Trail Report
-$ /reporting/rep710.php
+$ /reporting/rep710.php (new file)
 $ /reporting/reports_main.php
 ! Changed so $page_security works with reports (displays an error message on top)
 $ /reporting/includes/pdf_report.inc
index 0cbf7c38d7987b37a4122a6eeadeef60e48f572a..fb7ed1be71b04b370e26c1d26eefa4e53c96a073 100644 (file)
@@ -9,7 +9,6 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-$page_security = 8;
 include_once($path_to_root . "/reporting/includes/Workbook.php");
 include_once($path_to_root . "/admin/db/company_db.inc");
 include_once($path_to_root . "/config.php");
@@ -59,7 +58,7 @@ class FrontReport extends Spreadsheet_Excel_Writer_Workbook
                global $comp_path, $dateseps, $page_security;
                if (!$_SESSION["wa_current_user"]->can_access_page($page_security))
                {
-                       display_error(_("The security settings on your account do not permit you to access this function"));
+                       display_error(_("The security settings on your account do not permit you to print this report"));
                        end_page();
                        exit;
                }
index 10348cfea712b20e2f1d783ec5f90e3fba146b88..b0277f1eda17de64b9bdd71c384b8ce9c0e60598 100644 (file)
@@ -9,7 +9,6 @@
     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  
     See the License here <http://www.gnu.org/licenses/gpl-3.0.html>.
 ***********************************************************************/
-$page_security = 8;
 //include_once($path_to_root . "reporting/includes/class.pdf.inc");
 include_once(dirname(__FILE__)."/class.pdf.inc");
 include_once(dirname(__FILE__)."/printer_class.inc");
@@ -54,7 +53,7 @@ class FrontReport extends Cpdf
                global $page_security;
                if (!$_SESSION["wa_current_user"]->can_access_page($page_security))
                {
-                       display_error(_("The security settings on your account do not permit you to access this function"));
+                       display_error(_("The security settings on your account do not permit you to print this report"));
                        end_page();
                        exit;
                }