Skip to content
Snippets Groups Projects
Commit d2496d53 authored by Seamus Lee's avatar Seamus Lee Committed by totten
Browse files

security/core#112 Fix viewing contributions when user doesn't have acess to...

security/core#112 Fix viewing contributions when user doesn't have acess to civicontribute or edit contributions permissions
parent 1c0bb994
Branches
Tags
No related merge requests found
......@@ -28,6 +28,10 @@ class CRM_Contribute_Form_ContributionView extends CRM_Core_Form {
if (empty($id)) {
throw new CRM_Core_Exception('Contribution ID is required');
}
// Check permission for action.
if (!CRM_Core_Permission::checkActionPermission('CiviContribute', $this->_action)) {
CRM_Core_Error::statusBounce(ts('You do not have permission to access this page.'));
}
$params = ['id' => $id];
$context = CRM_Utils_Request::retrieve('context', 'Alphanumeric', $this);
$this->assign('context', $context);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment