DenisPnko opened a new issue, #32183:
URL: https://github.com/apache/superset/issues/32183

   ### Bug description
   
   Hello everyone, I am using Superset v4.1.1 and I am embedding dashboards 
from it on another site in an iframe. I am trying to disable the "Edit chart" 
button from the charts there and also remove the clickable option to edit the 
chart when you hover over the chart title. This is a similar issue that was 
discussed in:
   
   https://github.com/apache/superset/issues/28141
   https://github.com/apache/superset/issues/28172
   
   I would like to ask if there are potential options to remove this 
functionality from the embedded dashboard without using the CSS editor (as it 
might potentially cause other issues with the layout and doesn't remove the 
permissions themselves). I have tried the proposed solution of using a custom 
role with these permissions for the account that is used for embedding the 
dashboard:
   
   ```
     - can csrf token on Superset
     - can csv on Superset
     - can fetch datasource metadata on Superset
     - can invalidate on CacheRestApi
     - can log on Superset
     - can read on Chart
     - can read on CssTemplate
     - can read on Dashboard
     - can read on DashboardFilterStateRestApi
     - can read on Database
     - can read on Dataset
     - can read on Query
     - can read on SavedQuery
     - can slice json on Superset
     - can time range on Api
     - can warm up cache on Superset
   ```
   but I am still seeing the options to edit the charts in the embedded 
dashboard. Could you let me know please if there is a solution for this or 
whether I am missing something?
   
   
   ### Screenshots/recordings
   
   _No response_
   
   ### Superset version
   
   4.1.1
   
   ### Python version
   
   Not applicable
   
   ### Node version
   
   Not applicable
   
   ### Browser
   
   Chrome
   
   ### Additional context
   
   _No response_
   
   ### Checklist
   
   - [x] I have searched Superset docs and Slack and didn't find a solution to 
my problem.
   - [x] I have searched the GitHub issue tracker and didn't find a similar bug 
report.
   - [x] I have checked Superset's logs for errors and if I found a relevant 
Python stacktrace, I included it here as text in the "additional context" 
section.


-- 
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]

Reply via email to