Skip to content

Error accessing a private dashboard without being logged in using a permalink #40768

@dmunozv04

Description

@dmunozv04

Bug description

Enable RBAC, share a dashboard with a role.
Share -> copy permalink
Open that link on a private tab (or log out before)
Error {"error": "Error: You don't have access to this dashboard."} instead of redirecting to the login page.
When using a regular link instead of a permalink, the user is redirected: #30380

Screenshots/recordings

Before: {"error": "Error: You don't have access to this dashboard."}
After: redirect to login page

Superset version

master / latest-dev

Python version

3.11

Node version

18 or greater

Browser

Safari

Additional context

A PR will be provided that fixes this issue: #TBD

Checklist

  • I have searched Superset docs and Slack and didn't find a solution to my problem.
  • I have searched the GitHub issue tracker and didn't find a similar bug report.
  • 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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions