Error when deleting profile photo (image)
Overview
System throws a php error when trying to delete an individual's profile photo.
Discovered on CiviCRM 5.72.1.
Verified on dmaster running currently 5.74.alpha1.
Reproduction steps on dmaster
- Edit an Individual who already has a profile photo.
- Click the "Delete Contact Image" link below the person's photo.
- Get the error:
Error: Call to undefined method CRM_Contact_BAO_Contact::_checkAccess() in CRM_Contact_BAO_Contact::processImage() (line 1154 of /srv/buildkit/build/dmaster/web/sites/all/modules/civicrm/CRM/Contact/BAO/Contact.php).
The website encountered an unexpected error. Please try again later.
Expected behaviour
It should delete the image and not throw an error. Then show some sort of success message and/or return to view the Contact.