Skip to content

Conversation

@ofir-frd
Copy link

Benchmark PR plausible#5867

Type: Clean (correct implementation)

Original PR Title: Limit consolidated site access to specific site routes
Original PR Description: ### Changes

No visible changes in this PR, but just protecting unnecessary routes being accessed for consolidated views. A few examples:

  • GET /:domain/settings/people
  • GET api/stats/:domain/funnels/:id
  • POST /sites/:domain/memberships/invite

The idea is to update the AuthorizeSiteAccess plug to respond with a 404 if the site in question is a consolidated view AND there's no assign explicitly allowing consolidated view access.

Tests

  • Automated tests have been added

Changelog

  • This PR does not make a user-facing change

Documentation

  • This change does not need a documentation update

Dark mode

  • This PR does not change the UI

Original PR URL: plausible#5867

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants