Path for imports through the UI causes permission issues
Imports through the UI (such as Import Contributions from the Contributions menu) use the same path for the import summary page as the Import Contacts summary page in the UI (civicrm/import/contacts/summary). This causes the import to fail if the user does not have the "Import Contacts" permission, even if they do have the proper permissions for other imports.
I am currently working on a fix for this and should have a PR in the next few hours for the release candidate 5.53.
Steps to Replicate:
- Login as a user who does not have the Import Contacts permission
- Go to Contributions > Import Contributions
- Go through the process of importing a csv file with a test contribution
- After clicking import now, a queue runner will briefly pop up, and then the page will show an error message: "you are not authorized to access this page."
- Note that the url is civicrm/import/contacts/summary
Why: PR #23669 seems to have introduced this bug (in version 5.51), specifically in the Import.xml file, lines 20-27