Commit 5b656bb
committed
Improve withdrawal permissions and error handling
The permissions on the `*withdraw` items should be `no_permissions`.
After a submission is withdrawn, nothing further should happen to it.
When `perform_transition` is called in the View, that function will
already check for valid transitions and raise an exception if needed.
So do not bother looking into the transitions, instead look directly
for the withdraw action. And expect exactly one of those, otherwise
raise an exception with details of expectations.
Issue #32961 parent f63f0b2 commit 5b656bb
2 files changed
+15
-14
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
| 13 | + | |
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| |||
1601 | 1601 | | |
1602 | 1602 | | |
1603 | 1603 | | |
1604 | | - | |
1605 | | - | |
1606 | | - | |
| 1604 | + | |
1607 | 1605 | | |
1608 | 1606 | | |
1609 | | - | |
| 1607 | + | |
1610 | 1608 | | |
1611 | 1609 | | |
1612 | 1610 | | |
1613 | 1611 | | |
| 1612 | + | |
| 1613 | + | |
| 1614 | + | |
| 1615 | + | |
| 1616 | + | |
| 1617 | + | |
| 1618 | + | |
| 1619 | + | |
1614 | 1620 | | |
1615 | 1621 | | |
1616 | 1622 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
391 | 391 | | |
392 | 392 | | |
393 | 393 | | |
394 | | - | |
| 394 | + | |
395 | 395 | | |
396 | 396 | | |
397 | 397 | | |
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
446 | | - | |
447 | | - | |
448 | | - | |
449 | | - | |
450 | | - | |
451 | 446 | | |
452 | 447 | | |
453 | 448 | | |
| |||
585 | 580 | | |
586 | 581 | | |
587 | 582 | | |
588 | | - | |
| 583 | + | |
589 | 584 | | |
590 | 585 | | |
591 | 586 | | |
| |||
803 | 798 | | |
804 | 799 | | |
805 | 800 | | |
806 | | - | |
| 801 | + | |
807 | 802 | | |
808 | 803 | | |
809 | 804 | | |
| |||
1140 | 1135 | | |
1141 | 1136 | | |
1142 | 1137 | | |
1143 | | - | |
| 1138 | + | |
1144 | 1139 | | |
1145 | 1140 | | |
1146 | 1141 | | |
| |||
0 commit comments