Skip to content

Apply the note visibility rule in the note UI views - #15660

Open
svader0 wants to merge 1 commit into
bugfixfrom
hardening/note-visibility-consistency
Open

Apply the note visibility rule in the note UI views#15660
svader0 wants to merge 1 commit into
bugfixfrom
hardening/note-visibility-consistency

Conversation

@svader0

@svader0 svader0 commented Aug 13, 2026

Copy link
Copy Markdown
Collaborator

Hardening / consistency improvement to the note views under dojo/notes/ui.

The notes read paths go through the visibility helper. The three views there share a prologue that resolves the note and its parent object, so the same rule is applied in that one place, which covers all three views and all three page types.

The edit form no longer offers the visibility field to a requester who did not write the note. The edit view built its form in four branches; that is now one.

Adds regression tests for the three views, once per page type. There were none before.

No functional change for correctly-permissioned users.

The read paths go through the notes visibility helper. The three views
under dojo/notes/ui share a prologue that resolves the note and its
parent object, so the same rule now applies there, covering all three
views and all three page types in one place.

The edit form no longer offers the visibility field to a requester who
did not write the note.

The edit view built its form in four branches. That is now one.

Adds tests for the three views, once per page type. There were none.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant