duynguyenhoang opened a new issue #13711:
URL: https://github.com/apache/superset/issues/13711


   ### Expected results
   
   CSV Export permission must be consistent. When user doesn't have permission 
"Can CSV on Superset", he/she won't be able to Export CSV.
   There is no `Export CSV` menu on Dashboard and on Explore page in this case.
   
   ### Actual results
   
   "Can CSV on Superset" is not assigned to user.
   From Dashboard, user is unable to Export CSV but in Chart user can.
   
   #### Screenshots
   There is no Export CSV menu in Dashboard screen
   
![Screenshot_20210320_002214](https://user-images.githubusercontent.com/7106179/111819587-184cc380-8913-11eb-8726-a29752b96a48.png)
   
   There is CSV button and we can Export CSV
   
![Screenshot_20210320_002357](https://user-images.githubusercontent.com/7106179/111819585-171b9680-8913-11eb-9234-bb5c57885836.png)
   
   #### How to reproduce the bug
   
   1. A user with normal role, can access Chart/Dashboard and Explore page
   2. But he/she doesn't have "Can CSV on Superset" permission
   2. Go to any Dashboard, there is no "Export CSV" menu in any chart Context 
menu
   3. View chart in Explore
   4. On the right top pannel, there is "Export to CSV format" => Which is 
wrong.
   
   ### Environment
   
   - superset version: Master, SHA: 2b0b3f2f
   - python version: Python 3.7.9
   - node.js version: v14.16.0
   
   ### Checklist
   
   Make sure to follow these steps before submitting your issue - thank you!
   
   - [x] I have checked the superset logs for python stacktraces and included 
it here as text if there are any.
   - [x] I have reproduced the issue with at least the latest released version 
of superset.
   - [x] I have checked the issue tracker for the same issue and I haven't 
found one similar.
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to