Commit a3e6685
committed
Prevent any user from updating public bundles
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 <[email protected]>
Closes: getpatchwork#5991 parent 1c3e4d4 commit a3e6685
1 file changed
+4
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
135 | 135 | | |
136 | 136 | | |
137 | 137 | | |
| 138 | + | |
| 139 | + | |
138 | 140 | | |
139 | 141 | | |
140 | 142 | | |
| 143 | + | |
| 144 | + | |
141 | 145 | | |
142 | 146 | | |
143 | 147 | | |
| |||
0 commit comments