Skip to content

Commit

Permalink
CRM-15861 remove permission check that is duplicated in the parent fu…
Browse files Browse the repository at this point in the history
…nction (called next)
  • Loading branch information
eileenmcnaughton committed Nov 15, 2016
1 parent 88fdc63 commit 4589db8
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions CRM/Member/Form/MembershipRenewal.php
Original file line number Diff line number Diff line change
Expand Up @@ -129,10 +129,6 @@ public function preProcess() {
// This string makes up part of the class names, differentiating them (not sure why) from the membership fields.
$this->assign('formClass', 'membershiprenew');
parent::preProcess();
// check for edit permission
if (!CRM_Core_Permission::check('edit memberships')) {
CRM_Core_Error::fatal(ts('You do not have permission to access this page.'));
}

$this->assign('endDate', CRM_Utils_Date::customFormat(CRM_Core_DAO::getFieldValue('CRM_Member_DAO_Membership',
$this->_id, 'end_date'
Expand Down

0 comments on commit 4589db8

Please sign in to comment.