We upgrade recently from 4.5.8 to 4.6.6 on four of our CiviCRM instances.
In one of the instances ocurrs something very strange and compromising. When we create a new mailing, in the attachment tab appears one/two random files uploaded previously to event custom fields.
However if we try to delete the attached file/s we get the following error:
"Failed to run permission check: Unrecognized target entity table (civicrm_participant)"
Why they appear if they have no connection with the mailings?
Edit: Screenshot