HH/apps/organizations
ismail 8a944ad696
All checks were successful
Build and Push Docker Image / build (push) Successful in 2m27s
fix: 3 system-wide bugs found in URL health sweep (242 URLs, 0 errors after fix)
1. /config/test/ — json.loads(request.body) on GET crashed with JSONDecodeError.
   Added @require_http_methods(['POST']) so GET returns 405 instead of 500.

2. /organizations/dropdowns/subsections/ — LegacySubSection.objects.order_by('name')
   used wrong field name (model has name_en/name_ar, not 'name'). Fixed to 'name_en'.

3. /rca/create/ — RCACreateView.dispatch() called _check_rca_create(request) before
   LoginRequiredMixin ran, so AnonymousUser hit is_px_admin() → AttributeError.
   Added auth check before the RBAC check in dispatch().

Post-fix: authenticated sweep of all 242 UI URLs → 233 OK, 0 errors (500s).
2026-06-17 20:32:07 +03:00
..
2025-12-24 12:42:31 +03:00
2026-05-11 14:45:30 +03:00