zhaorui2022 opened a new issue, #21559: URL: https://github.com/apache/superset/issues/21559
If a user is not Admin, but is granted "menu_access on Manage" permission through other roles, the user won't be able to see "Set up email report" button in the drop down menu on Dashboards or charts unless the first role has "menu_access on Manage" permission. This is because on line 123 of this file https://github.com/apache/superset/blob/master/superset-frontend/src/components/ReportModal/HeaderReportDropdown/index.tsx#L118-L123 , it only checks the first role. #### How to reproduce the bug 1. Find a user whose first role doesn't have "menu_access on Manager" permission but is granted through other roles 2. Click on either a dashboard or a chart 3. Click on the three dots button 4. "Set up email report" button doesn't show up ### Expected results If a user has been granted the correct permission, the user should be able to see the "Set up email report" button ### Actual results the "Set up email report" button doesn't show up #### Screenshots N/A ### Environment (please complete the following information): - browser type and version: tried on all browsers - superset version: superset 2.0.0 - python version: 3.8 - node.js version: N/A - any feature flags active: ALERT_REPORT is enabled ### Checklist Make sure to follow these steps before submitting your issue - thank you! - [ ] 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. ### Additional context Will send a PR later to fix the issue -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected] --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
