From 303aa3b3a0ecd0473147d592800e739c964380ff Mon Sep 17 00:00:00 2001 From: Pratik Joshi Date: Wed, 23 Apr 2014 16:51:20 +0530 Subject: [PATCH] CRM-14436-fix : silly mistake, didn't included && inside if condition --- CRM/Mailing/Page/View.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Mailing/Page/View.php b/CRM/Mailing/Page/View.php index 6f37e8415b..9877b6c7d6 100644 --- a/CRM/Mailing/Page/View.php +++ b/CRM/Mailing/Page/View.php @@ -108,7 +108,7 @@ class CRM_Mailing_Page_View extends CRM_Core_Page { // if mailing is present and associated hash is present // while 'hash' is not been used for mailing view : throw 'permissionDenied' if ($this->_mailing->find() && - CRM_Core_DAO::getFieldValue('CRM_Mailing_BAO_Mailing', $this->_mailingID, 'hash', 'id') + CRM_Core_DAO::getFieldValue('CRM_Mailing_BAO_Mailing', $this->_mailingID, 'hash', 'id') && !$allowID ) { CRM_Utils_System::permissionDenied(); -- 2.25.1