CRM-14436-fix : silly mistake, didn't included && inside if condition
authorPratik Joshi <pratik.joshi@webaccess.co.in>
Wed, 23 Apr 2014 11:21:20 +0000 (16:51 +0530)
committerPratik Joshi <pratik.joshi@webaccess.co.in>
Wed, 23 Apr 2014 11:21:20 +0000 (16:51 +0530)
CRM/Mailing/Page/View.php

index 6f37e8415b787929d70fcccb0e2202172702a2d5..9877b6c7d673a1b11f01a802749d60c626ae3653 100644 (file)
@@ -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();