From 90ff886766c9e4f7e4f81038508ce70657117c84 Mon Sep 17 00:00:00 2001 From: iglocska Date: Mon, 24 Mar 2014 09:14:51 +0100 Subject: [PATCH] Fix to the export issue with md5 / sha1 fixes #237 --- app/Model/Attribute.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/app/Model/Attribute.php b/app/Model/Attribute.php index df9df684c..bcbfda3a6 100755 --- a/app/Model/Attribute.php +++ b/app/Model/Attribute.php @@ -1138,9 +1138,8 @@ class Attribute extends AppModel { if ($type != 'md5' && $type != 'sha1') { throw new UnauthorizedException('Invalid hash type.'); } - //restricting to non-private or same org if the user is not a site-admin. - $conditions['AND'] = array('Attribute.to_ids' => 1, 'Event.published' => 1); + $conditions['AND'] = array('Attribute.to_ids' => 1, 'Event.published' => 1, 'Attribute.type' => $type); if (!$isSiteAdmin) { $temp = array(); $distribution = array();