Esempio n. 1
0
 /**
  * Check subscription view availability
  *
  * @param   Customweb_Subscription_Model_Subscription $subscription
  * @return  bool
  */
 protected function _canViewSubscription($subscription)
 {
     $customerId = Mage::getSingleton('customer/session')->getCustomerId();
     if ($subscription->getId() && $subscription->getCustomerId() && $subscription->getCustomerId() == $customerId) {
         return true;
     }
     return false;
 }