Commit 424b95e
committed
Update stale dojo.api_v2.permissions imports after RBAC refactor
Phase 2 of perm-cleanup moved DRF permissions to
dojo/authorization/api_permissions.py, but three callsites that arrived
via the dev merge still pointed at the old location:
- dojo/risk_acceptance/api.py (UserHasRiskAcceptanceRelatedObjectPermission,
added in DefectDojo#14632)
- dojo/jira/api/views.py (`from dojo.api_v2 import permissions`, added
by the dev jira-package refactor DefectDojo#14743)
- unittests/test_rest_framework.py (`@patch("dojo.api_v2.permissions...")`)
Without these the URL config fails to import and every CI job 500s
during app startup.1 parent d29aca5 commit 424b95e
3 files changed
Lines changed: 3 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2 | 2 | | |
3 | 3 | | |
4 | 4 | | |
5 | | - | |
6 | 5 | | |
| 6 | + | |
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
10 | 10 | | |
11 | 11 | | |
12 | 12 | | |
13 | | - | |
14 | 13 | | |
| 14 | + | |
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3435 | 3435 | | |
3436 | 3436 | | |
3437 | 3437 | | |
3438 | | - | |
| 3438 | + | |
3439 | 3439 | | |
3440 | 3440 | | |
3441 | 3441 | | |
| |||
0 commit comments