UPGRADE NOTE: Do not edit or add to this file if you wish to upgrade AbanteCart to newer versions in the future. If you wish to customize AbanteCart for your needs please refer to http://www.AbanteCart.com for more information. ------------------------------------------------------------------------------*/ if (! defined ( 'DIR_CORE' )) { header ( 'Location: static_pages/' ); } class ControllerApiErrorNoPermission extends AControllerAPI { public function main() { $this->rest->setResponseData( array( 'error' => 'No permission to access this resource!' ) ); $this->rest->sendResponse(401); return null; } }