Authentication and reports August 09, 2018, 12:08:33 AM Seems when ever you enable authentication to a project you loose the ability to use the reports page. I assume this is because the logged in user session doesn't get verified in the report controller.. is there a quick work around or do I have to resort to hand coding this into the project? Quote Selected
Re: Authentication and reports Reply #1 – August 09, 2018, 10:39:10 AM You can edit the ReportController.php and change the BaseController to SecureController.class ReportController extends BaseController{ /** * Render All Records in a Data Table * @return Html View */ function index(){ $this->view->render("report/index.php" ,null,"report_layout.php"); }} Quote Selected
Re: Authentication and reports Reply #2 – August 16, 2018, 01:12:42 AM Hi Emman,Thanks for the suggestion, but doesn't seem to help.With secure login enabled and report controller changed:Quote<?php /** * Report Page Controller * @category Controller */class ReportController extends SecureController{ /** * Render All Records in a Data Table * @return Html View */ function index(){ $this->view->render("report/index.php" ,null,"report_layout.php"); }}I still have the issue of page 403 message:any help to resolve this issue will be appreciated.Thanks, Quote Selected
Re: Authentication and reports Reply #3 – August 16, 2018, 01:09:35 PM Please also edit the "libs/PageAccessManager.php". Add access to user roles that can access the "report".Thanks. Quote Selected
Re: Authentication and reports Reply #4 – August 27, 2018, 10:51:17 AM Thanks Emman,That worked for now.Code: [Select]'administrator' => array( 'users' => array('list','view','accountedit','accountview','userregister','add','edit','delete'), 'report' => array('list') ) Quote Selected