Skip to content

Fix country dashboard sharing: restrict access to project users/groups#580

Closed
Ramon-Jimenez wants to merge 24 commits intodevelopmentfrom
feature/migration-v42-869cnr7nt
Closed

Fix country dashboard sharing: restrict access to project users/groups#580
Ramon-Jimenez wants to merge 24 commits intodevelopmentfrom
feature/migration-v42-869cnr7nt

Conversation

@Ramon-Jimenez
Copy link
Copy Markdown
Contributor

Summary

  • Country dashboards were set to public read+write (rw------), allowing any logged-in user to see and edit all country dashboards regardless of their project assignments.
  • Changed CountryDashboard.getSharing() to set public: "--------" and restrict access to the aggregated users and user groups from all projects within that country — matching the pattern already used by project dashboards via ProjectSharing.
  • Added migration task 10 to regenerate all existing country dashboards with the corrected sharing settings.

Test plan

  • All existing tests pass (48/48)
  • Test fixture updated to reflect new sharing structure
  • Verify on a DHIS2 instance that country dashboards are no longer visible to users without project assignments in that country
  • Verify that users with project assignments in a country can still see the country dashboard
  • Run migration 10 on a test instance and confirm existing dashboards are updated

🤖 Generated with Claude Code

eperedo and others added 24 commits March 13, 2026 13:10
…ad of public

Country dashboards were set to public read+write access (rw------),
allowing any user to see all country dashboards regardless of their
project assignments. Now sharing is restricted to the aggregated
users and user groups from all projects within the country, matching
the pattern already used by project dashboards.

Adds migration 10 to regenerate all existing country dashboards with
the corrected sharing settings.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@bundlemon
Copy link
Copy Markdown

bundlemon Bot commented Apr 16, 2026

BundleMon

No change in files bundle size

Groups updated (1)
Status Path Size Limits
Build Folder
./**/*
5.55MB (+52.69KB +0.94%) +20%

Final result: ✅

View report in BundleMon website ➡️


Current branch size history | Target branch size history

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