X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FEvent%2FPage%2FTab.php;h=72d857e725f523bf6e53cf9ce39815ce521448e1;hb=c312052ee090c968119ffea720c303fff5e137f2;hp=14ff3f8421e09a685fe03fc29be16c9cbc7efefd;hpb=4c95b949e863281d990ffa2a3104415079e6352d;p=civicrm-core.git diff --git a/CRM/Event/Page/Tab.php b/CRM/Event/Page/Tab.php index 14ff3f8421..72d857e725 100644 --- a/CRM/Event/Page/Tab.php +++ b/CRM/Event/Page/Tab.php @@ -62,9 +62,11 @@ class CRM_Event_Page_Tab extends CRM_Core_Page { $this->ajaxResponse['tabCount'] = CRM_Contact_BAO_Contact::getCountComponent('participant', $this->_contactId); // Refresh other tabs with related data $this->ajaxResponse['updateTabs'] = array( - '#tab_contribute' => CRM_Contact_BAO_Contact::getCountComponent('contribution', $this->_contactId), '#tab_activity' => CRM_Contact_BAO_Contact::getCountComponent('activity', $this->_contactId), ); + if (CRM_Core_Permission::access('CiviContribute')) { + $this->ajaxResponse['updateTabs']['#tab_contribute'] = CRM_Contact_BAO_Contact::getCountComponent('contribution', $this->_contactId); + } } } @@ -135,9 +137,6 @@ class CRM_Event_Page_Tab extends CRM_Core_Page { // check logged in url permission CRM_Contact_Page_View::checkUserPermission($this); - - // set page title - CRM_Contact_Page_View::setTitle($this->_contactId); } $this->assign('action', $this->_action); @@ -159,7 +158,7 @@ class CRM_Event_Page_Tab extends CRM_Core_Page { $this->preProcess(); // check if we can process credit card registration - CRM_Core_Payment::allowBackofficeCreditCard($this); + $this->assign('newCredit', CRM_Core_Config::isEnabledBackOfficeCreditCardPayments()); // Only show credit card registration button if user has CiviContribute permission if (CRM_Core_Permission::access('CiviContribute')) {