You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@superset.apache.org by "yang472541642 (via GitHub)" <gi...@apache.org> on 2025/03/22 08:09:23 UTC

[D] How to hide the charts in the dashboard that the current user role has no permission to view, instead of continuing to display the chart and showing an error message? [superset]

GitHub user yang472541642 created a discussion: How to hide the charts in the dashboard that the current user role has no permission to view, instead of continuing to display the chart and showing an error message?

How to hide the charts in the Kanban that the current user role has no permission to view, instead of continuing to display the chart and showing an error message?

GitHub link: https://github.com/apache/superset/discussions/32803

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [D] How to hide the charts in the dashboard that the current user role has no permission to view, instead of continuing to display the chart and showing an error message? [superset]

Posted by "dosubot[bot] (via GitHub)" <gi...@apache.org>.
GitHub user dosubot[bot] added a comment to the discussion: How to hide the charts in the dashboard that the current user role has no permission to view, instead of continuing to display the chart and showing an error message?

<!-- Answer -->
I found some similar discussions regarding hiding charts based on user permissions in Superset:

1. [Can we give access to some dashboards to certain users and hide the ones which we don't want to show?](https://github.com/apache/superset/discussions/32295) <sup>[[1]](https://github.com/apache/superset/discussions/32295)</sup>
2. [Hide chart tab for users without permission to edit charts](https://github.com/apache/superset/discussions/23802) <sup>[[2]](https://github.com/apache/superset/discussions/23802)</sup>
3. [Personalization - hide charts/slices for users](https://github.com/apache/superset/discussions/22816) <sup>[[3]](https://github.com/apache/superset/discussions/22816)</sup>

These discussions are unsolved, and there isn't a direct configuration option or feature flag in Superset to hide charts based on user permissions instead of showing an error message. Superset's default behavior is to redirect users without the necessary permissions to the dashboard list with an error message <sup>[[4]](https://github.com/apache/superset/blob/master/superset/views/core.py)</sup>. 

Currently, there are no existing plugins or extensions specifically for this functionality, and customization of the frontend behavior to modify how charts are displayed based on user permissions might require custom development.


<!-- 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/4887ce5f-c8ef-4256-a5da-2b4cedef80bb?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/4887ce5f-c8ef-4256-a5da-2b4cedef80bb?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/4887ce5f-c8ef-4256-a5da-2b4cedef80bb?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/4887ce5f-c8ef-4256-a5da-2b4cedef80bb?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/4887ce5f-c8ef-4256-a5da-2b4cedef80bb?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/4887ce5f-c8ef-4256-a5da-2b4cedef80bb?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/4887ce5f-c8ef-4256-a5da-2b4cedef80bb?feedback_type=other)</sup>


GitHub link: https://github.com/apache/superset/discussions/32803#discussioncomment-12584626

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org


Re: [D] How to hide the charts in the dashboard that the current user role has no permission to view, instead of continuing to display the chart and showing an error message? [superset]

Posted by "msidlo-dot (via GitHub)" <gi...@apache.org>.
GitHub user msidlo-dot added a comment to the discussion: How to hide the charts in the dashboard that the current user role has no permission to view, instead of continuing to display the chart and showing an error message?

@dosu Is this still the case with newer Superset versions?

GitHub link: https://github.com/apache/superset/discussions/32803#discussioncomment-17639229

----
This is an automatically sent email for notifications@superset.apache.org.
To unsubscribe, please send an email to: notifications-unsubscribe@superset.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: notifications-unsubscribe@superset.apache.org
For additional commands, e-mail: notifications-help@superset.apache.org