Skip to content

Update dashboard permissions#2752

Merged
jjnesbitt merged 3 commits intomasterfrom
dashboard-required-perm
Mar 24, 2026
Merged

Update dashboard permissions#2752
jjnesbitt merged 3 commits intomasterfrom
dashboard-required-perm

Conversation

@jjnesbitt
Copy link
Copy Markdown
Member

  • Allow staff users to access dashboard views
  • Require staff or superuser access on mailchimp view
  • Add tests against dashboard views

@jjnesbitt jjnesbitt requested a review from waxlamp March 24, 2026 16:02
@jjnesbitt jjnesbitt changed the title Update dashboard view permissions Update dashboard permissions Mar 24, 2026
@pytest.mark.django_db
def test_dashboard_access_unauthenticated(api_client):
resp = api_client.get('/dashboard/')
assert resp.status_code == 302
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This 302 redirects unauthenticated users to the login page, is that right?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes

@jjnesbitt jjnesbitt added patch Increment the patch version when merged release Create a release when this pr is merged labels Mar 24, 2026
@jjnesbitt jjnesbitt merged commit 4a935ce into master Mar 24, 2026
7 checks passed
@jjnesbitt jjnesbitt deleted the dashboard-required-perm branch March 24, 2026 16:56
@dandibot
Copy link
Copy Markdown
Member

🚀 PR was released in v0.21.11 🚀

@dandibot dandibot added the released This issue/pull request has been released. label Mar 24, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

patch Increment the patch version when merged release Create a release when this pr is merged released This issue/pull request has been released.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants