dosubot[bot] commented on issue #32183: URL: https://github.com/apache/superset/issues/32183#issuecomment-2642700360
<!-- Greeting --> Hello, @DenisPnko! I'm here to help you with any bugs, questions, or assistance you need. Let's tackle this together! <!-- Answer --> There are a few similar discussions related to your issue: 1. [Embedded dashboard: hide edit chart title link](https://github.com/apache/superset/discussions/25436) - This discussion is still open and might provide some insights or potential solutions. 2. [How to disable <Edit Chart> in chart controls?](https://github.com/apache/superset/discussions/25642) - This is another open discussion that might be relevant. 3. [Not Able To Disable Edit Chart Option And Clickable Title Option In Iframe](https://github.com/apache/superset/discussions/28056) - This discussion is also open and directly relates to your issue. A closed issue suggested creating a custom role with a subset of permissions to make up a view-only profile. Starting with the `Gamma` role and removing permissions that allow editing might help. A user shared their personal 'view-only' definition, which includes permissions like `can read on Chart`, `can read on Dashboard`, and others that fit a view-only use case <sup>[[1]](https://github.com/apache/superset/issues/28172)</sup>. Additionally, the specific permission associated with the 'Edit chart' functionality in Superset is `can_explore`. The 'Edit chart' button is rendered as disabled if the user does not have the `can_explore` permission <sup>[[2]](https://github.com/apache/superset/blob/master/superset-frontend/src/components/Chart/DrillDetail/DrillDetailModal.test.tsx)</sup><sup>[[3]](https://github.com/apache/superset/blob/master/superset-frontend/src/components/Chart/DrillBy/DrillByModal.test.tsx)</sup>. You might want to ensure that this permission is not included in your custom role. For embedded dashboards, Superset uses a class permission name and method permission name to handle permissions. The `EmbeddedDashboardRestApi` class has a `class_permission_name` set to "EmbeddedDashboard" and uses `MODEL_API_RW_METHOD_PERMISSION_MAP` for `method_permission_name` <sup>[[4]](https://github.com/apache/superset/blob/master/superset/embedded/api.py)</sup>. Lastly, there are configuration options in Superset that allow for disabling interactive elements in embedded dashboards. The `dashboardUiConfig` parameter in the `embedDashboard` function includes options such as `hideTitle`, `hideTab`, and `hideChartControls` which can be used to control the visibility of these elements <sup>[[5]](https://github.com/apache/superset/blob/master/superset-embedded-sdk/src/index.ts)</sup>. You might want to explore these options to see if they meet your needs. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* --- <sup>Help Dosu learn! Give it feedback: [Great Response](https://app.dosu.dev/response-feedback/ecf68e3d-ae85-44ba-ab22-1489a0179e6a?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/ecf68e3d-ae85-44ba-ab22-1489a0179e6a?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/ecf68e3d-ae85-44ba-ab22-1489a0179e6a?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/ecf68e3d-ae85-44ba-ab22-1489a0179e6a?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/ecf68e3d-ae85-44ba-ab22-1489a0179e6a?feedback_type=hallucination) | [Other](https://app.dosu.dev/response-feedback/ecf68e3d-ae85-44ba-ab22-1489a0179e6a?feedback_type=other)</sup> -- 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]
