Commit b14a931
committed
fix(spp_approval,spp_dci_client): prevent RPC exposure of system approval and narrow exception handling
Rename action_approve_system to _action_approve_system to prevent Odoo
from exposing it via the RPC interface, since it uses sudo() and skips
_check_can_approve() authorization checks.
Replace broad Exception catches in spp_dci_client with specific exception
types (json.JSONDecodeError, KeyError, TypeError) and add json import.1 parent 6507a5a commit b14a931
2 files changed
Lines changed: 7 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
332 | 332 | | |
333 | 333 | | |
334 | 334 | | |
335 | | - | |
| 335 | + | |
336 | 336 | | |
337 | 337 | | |
338 | 338 | | |
| |||
341 | 341 | | |
342 | 342 | | |
343 | 343 | | |
| 344 | + | |
| 345 | + | |
| 346 | + | |
344 | 347 | | |
345 | 348 | | |
346 | 349 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
3 | 4 | | |
4 | 5 | | |
5 | 6 | | |
| |||
943 | 944 | | |
944 | 945 | | |
945 | 946 | | |
946 | | - | |
| 947 | + | |
947 | 948 | | |
948 | 949 | | |
949 | 950 | | |
| |||
979 | 980 | | |
980 | 981 | | |
981 | 982 | | |
982 | | - | |
| 983 | + | |
983 | 984 | | |
984 | 985 | | |
985 | 986 | | |
| |||
0 commit comments