Event attendees csv export requires the “manage_options” capability
-
We have several users set up with a “conference managers” role and need them to be able to export the attendee csv but we’ve found that the export is requiring the users to have the “manage_options” capability which would give those users the ability to change permalink settings and generals settings like the admin email and such so we do not want to enable that capability for the “conference managers”.
https://www.ads-software.com/documentation/article/roles-and-capabilities/#manage_options
The code that checks the capability before doing the export is in the maybe_generate_csv function in the /event-tickets/src/Tribe/Attendees.php file around line 769.
I did also find a similar function with the same name of maybe_generate_csv in the /event-tickets/src/Tickets/Commerce/Reports/Attendees.php file around line 393 and that function only requires the user to have the “edit_posts” capability which seems much more reasonable to require for the export.
Is it possible that the “manage_options” capability was set as the requirement by mistake in the /event-tickets/src/Tribe/Attendees.php file? It doesn’t seem like the functionality provided by the “manage_options” capability makes sense as a requirement for the export.
- You must be logged in to reply to this topic.