dosubot[bot] commented on issue #32768: URL: https://github.com/apache/superset/issues/32768#issuecomment-2739812871
<!-- Greeting --> Hey @guidobonuzzi! I'm here to help you with any bugs or questions you have about the issue you posted. Let's work together to solve this! <!-- Answer --> To resolve the "Guest user cannot modify chart payload" error when applying a Time Grain filter different from the default in an embedded Superset dashboard, you need to ensure that the user is not a guest user or that the query context is not modified. The error occurs because guest users are restricted from modifying the chart payload, which includes changing filters like the Time Grain. Here are some steps you can take: 1. **Authenticate the User**: Ensure that the user accessing the dashboard is authenticated and not a guest user. Implement a proper authentication mechanism in your application that embeds the Superset dashboard. 2. **Avoid Modifying the Query Context**: If the user must remain a guest, ensure that the query context is not modified from what is saved in the dashboard. This means using the default settings and filters as configured in the dashboard without making changes. If neither of these solutions is feasible, you may need to adjust your application logic to handle user roles and permissions more effectively, ensuring that only authenticated users can make such modifications <sup>[[1]](https://github.com/apache/superset/blob/master/superset/security/manager.py)</sup>. <!-- 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/ca01c3b8-5ebe-46eb-b8f7-a3c0ec93a0bb?feedback_type=great_response) | [Irrelevant Answer](https://app.dosu.dev/response-feedback/ca01c3b8-5ebe-46eb-b8f7-a3c0ec93a0bb?feedback_type=irrelevant_answer) | [Incorrect Sources](https://app.dosu.dev/response-feedback/ca01c3b8-5ebe-46eb-b8f7-a3c0ec93a0bb?feedback_type=incorrect_sources) | [Too Verbose](https://app.dosu.dev/response-feedback/ca01c3b8-5ebe-46eb-b8f7-a3c0ec93a0bb?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/ca01c3b8-5ebe-46eb-b8f7-a3c0ec93a0bb?feedback_type=hallucination) | [Bug Report](https://app.dosu.dev/response-feedback/ca01c3b8-5ebe-46eb-b8f7-a3c0ec93a0bb?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/ca01c3b8-5ebe-46eb-b8f7-a3c0ec93a0bb?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]
