Repository navigation
Conversation
… parts
Add NetworkPolicy::viewPublic and GET /api/v2/networks/{id}/viewer, which 403s
anyone who is not an administrator, a coordinator of the network or a member of
one of its groups, and says whether the caller can moderate. The network
resource keeps reporting_url for coordinators and administrators only. The page
follows the API, hides moderation, add-groups, export, tags and reporting links
from non-coordinators, and shows the five nearest groups to the viewer's own.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…egenerate specs manifest Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…r 401/403 in tests Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
|
Preview: https://restarters-pr-950.fly.dev✅ Ready - restore and migrations succeeded.
|
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



Thought experiment (RESDISCO-249), not for merge as is. Rebuilt on the Nuxt 4 client (#898), replacing #945. Targets
nuxt-client.What changes
NetworkPolicy::viewPublic). Anyone else still gets the forbidden page.GET /api/v2/networks/{id}returnedreporting_urlto everyone. Now it returns it only to the network's coordinators and admins, andnullto everyone else.GET /api/v2/networks/{id}/viewer. It returns 403 to anyone who can't open the page; otherwise it returnscan_moderateandnearby_groups. The page uses it to decide what to show./networks/{id},/groups,/tags,/stats) still answer anyone, because third parties use them.en, fr and fr-BE strings. Tests:
NetworkPageVisibilityTest(API), the page gating spec and a nearby-list spec.The stats period toggle that was in #945 has moved to the network events thought experiment.