Skip to content

Container scoping for survey save template action. - #7887

Open
labkey-klum wants to merge 1 commit into
release26.7-SNAPSHOTfrom
26.7_fb_survey_container_scoping
Open

Container scoping for survey save template action.#7887
labkey-klum wants to merge 1 commit into
release26.7-SNAPSHOTfrom
26.7_fb_survey_container_scoping

Conversation

@labkey-klum

Copy link
Copy Markdown
Contributor

Rationale

This PR enforces container scoping when you are updating a survey design. Previously a user could reparent a survey design by only having read access to the design's container because we resolve the design by survey ID.

I ended up refactoring the SurveyManager.getSurveyDesign method to have a version for read and write since in the read case we allow access from another container as long as the user has read access to the parent container. There is also a new unit test to cover this scenario.

@labkey-klum labkey-klum self-assigned this Jul 28, 2026
@labkey-klum
labkey-klum requested review from a team and labkey-danield July 28, 2026 19:33

@labkey-danield labkey-danield left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

Test looks ok to me.

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.

3 participants