Skip to content

Align questionnaire question-set editing with the questionnaire change permission - #15691

Merged
Maffooch merged 1 commit into
bugfixfrom
hardening/questionnaire-question-set-permission
Aug 18, 2026
Merged

Align questionnaire question-set editing with the questionnaire change permission#15691
Maffooch merged 1 commit into
bugfixfrom
hardening/questionnaire-question-set-permission

Conversation

@svader0

@svader0 svader0 commented Aug 17, 2026

Copy link
Copy Markdown
Collaborator

Hardening / consistency improvement to questionnaire configuration permission checks. The question-set editor now requires the same permission as the other edit operation on that object, and there is a regression test. Users with the questionnaire change permission see no functional change.

A role holding only the questionnaire add permission can still create a questionnaire. It now lands on the questionnaire list after creating one, instead of being sent to a page it cannot use.

The question-set editor accepted either the questionnaire add permission or
the change permission, so a role holding only the create permission could
rewrite the question set of any existing questionnaire and reset the
completion state of every answered copy of it. The three sibling
questionnaire routes each require one permission, and the user permission
chart documents editing an existing questionnaire as the change permission.

Creating a questionnaire no longer redirects into the question-set editor
unless the caller also holds the change permission, so a create-only role
lands on the questionnaire list instead of a denial page.
@Maffooch Maffooch added this to the 3.2.300 milestone Aug 17, 2026
@Maffooch
Maffooch added this pull request to the merge queue Aug 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 17, 2026
@Maffooch
Maffooch added this pull request to the merge queue Aug 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 17, 2026
@Maffooch
Maffooch added this pull request to the merge queue Aug 17, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 18, 2026
@Maffooch Maffooch modified the milestones: 3.2.300, 3.2.201 Aug 18, 2026
@Maffooch
Maffooch added this pull request to the merge queue Aug 18, 2026
@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Aug 18, 2026
@Maffooch
Maffooch added this pull request to the merge queue Aug 18, 2026
Merged via the queue into bugfix with commit fde10db Aug 18, 2026
47 of 48 checks passed
@Maffooch
Maffooch deleted the hardening/questionnaire-question-set-permission branch August 18, 2026 09:13
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.

4 participants