More use of list_active(), setup ajax actions that are check to be ajax
This commit is contained in:
@@ -82,6 +82,11 @@ abstract class lnApp_Controller_TemplateDefault extends Controller_Template {
|
||||
return;
|
||||
}
|
||||
|
||||
$TEST = FALSE;
|
||||
// Actions that start with ajax, should only be ajax
|
||||
if (preg_match('/^ajax/',Request::current()->action()) AND ! Request::current()->is_ajax() AND ! $TEST)
|
||||
die();
|
||||
|
||||
parent::before();
|
||||
|
||||
// Check user auth and role
|
||||
|
Reference in New Issue
Block a user