Skip to content

Prevent any user from updating public bundles#629

Merged
stephenfin merged 1 commit into
getpatchwork:mainfrom
nifey:fix_public_bundles
Jun 7, 2026
Merged

Prevent any user from updating public bundles#629
stephenfin merged 1 commit into
getpatchwork:mainfrom
nifey:fix_public_bundles

Conversation

@nifey
Copy link
Copy Markdown
Contributor

@nifey nifey commented Apr 16, 2025

Currently, the web UI allows any logged in user to remove patches from public bundles. However the correct behaviour is that only the owner of the bundle should be allowed to update a bundle.

Fix that by adding checks in set_bundle() before adding or removing patches from bundles.

Closes: #599

After fixing, when I try to remove a patch from a public bundle (without being an owner user), I get the following error message and the patch is not removed.

Screenshot 2025-04-16 at 22-05-47 Linux kernel - Patchwork

Currently, the web UI allows any logged in user to remove patches from
public bundles. However the correct behaviour is that only the owner of
the bundle should be allowed to update a bundle.

Fix that by adding checks in set_bundle() before adding or removing
patches from bundles.

Signed-off-by: Abdun Nihaal <abdun.nihaal@gmail.com>
Closes: getpatchwork#599
@stephenfin stephenfin merged commit fc278e2 into getpatchwork:main Jun 7, 2026
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.

Public bundles can have patches removed by anyone?

2 participants