From 1e6c9e662fd6989f11fac0b56dc55c37a5c2768c Mon Sep 17 00:00:00 2001 From: iglocska Date: Thu, 14 Aug 2014 17:26:40 +0200 Subject: [PATCH] Fixes authentication issues for some exports - some exports did not allow users to authenticate via passing the auth key through the header --- app/Controller/AppController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Controller/AppController.php b/app/Controller/AppController.php index 5a70e40c2..71a6bcf7a 100755 --- a/app/Controller/AppController.php +++ b/app/Controller/AppController.php @@ -45,8 +45,8 @@ class AppController extends Controller { // Used for _isAutomation(), a check that returns true if the controller & action combo matches an action that is a non-xml and non-json automation method // This is used to allow authentication via headers for methods not covered by _isRest() - as that only checks for JSON and XML formats public $automationArray = array( - 'events' => array('csv', 'nids', 'hids'), - 'attributes' => array('text', 'downloadAttachment'), + 'events' => array('csv', 'nids', 'hids', 'xml', 'restSearch'), + 'attributes' => array('text', 'downloadAttachment', 'returnAttributes', 'restSearch'), ); public function __construct($id = false, $table = null, $ds = null) {