dosubot[bot] commented on issue #30004: URL: https://github.com/apache/superset/issues/30004#issuecomment-2306809448
<!-- Answer --> I found a similar closed issue that might be relevant to your problem: [How to disable authentication to bypass login?](https://github.com/apache/superset/issues/26737) <sup>[[1]](https://github.com/apache/superset/issues/26737)</sup>. Regarding your specific issue, the expected behavior for users without the "can write to DashboardPermalinkRestApi" permission is that they should receive a 404 Not Found response when attempting to create a new dashboard's permanent link, not a redirection to the login page <sup>[[2]](https://github.com/apache/superset/blob/master/superset/dashboards/permalink/api.py)</sup><sup>[[3]](https://github.com/apache/superset/blob/master/tests/integration_tests/dashboards/permalink/api_tests.py)</sup><sup>[[4]](https://github.com/apache/superset/blob/master/RESOURCES/STANDARD_ROLES.md)</sup>. The logic for rendering anchors (tabs or headers) and their visibility based on permissions is managed within the `Header` component. The visibility of these elements is controlled by props such as `userCanEdit`, `userCanShare`, `userCanSave`, and `userCanCurate` <sup>[[5]](https://github.com/apache/superset/blob/master/superset-frontend/src/dashboard/components/Header/HeaderActionsDropdown/index.jsx)</sup><sup>[[6]](https://github.com/apache/superset/blob/master/superset-frontend/src/dashboard/components/Header/index.jsx)</sup><sup>[[7]](https://github.com/apache/superset/blob/master/superset-frontend/src/dashboard/components/SliceHeaderControls/index.tsx)</sup>. To address the issue, you should ensure that the anchors are only displayed if the user has the necessary permissions. This can be done by checking the relevant permissions before rendering the anchors in the `Header` component. <!-- Dosu Comment Footer --> *To continue talking to [Dosu](https://dosu.dev), mention @dosu.* -- 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]
