View data export with custom table doesn't work if user is not admin

Created on 17 May 2022, over 2 years ago
Updated 4 September 2023, over 1 year ago

I'm working on a Drupal 9 website displaying custom table data and I need to provide CSV/XLS export links for it.
I've defined a view consuming the custom table data thanks to the Views Custom Table module. I've installed the Views Data Export module and configured a display to export data as CSV. This display is attached to the base display.
The CSV button is shown on the view, and when I'm logged in as admin, everything works fine. When I'm just an authenticated user, and I click on the button, the display attached to the CSV export is rendered and exported in CSV (so there is all the HTML in the file).

I think it is a permission issue: Export uses REST core module and this one is performing permission check on the entity (for example, user is able to access the entity). In my view, there is no entity because data comes from the View Custom Table module.

I'm not sure if there is a simple solution to find what is going wrong ?
Many thanks !

🐛 Bug report
Status

Active

Version

1.1

Component

Code

Created by

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024