This repository was archived by the owner on May 29, 2026. It is now read-only.
Commit 6b24be2
committed
fix: address 3 open review threads on PR #1419
- ActionsController: drop @NoAdminRequired / #[NoAdminRequired] from
create/update/patch/destroy/test/migrateFromHooks. The methods were
carrying the attribute *and* calling requireAdmin() in the body, which
is the exact contradiction gate-9 (semantic-auth) detects. Without the
attribute, the methods are admin-only at the framework level by
default; the body-level requireAdmin() stays as defence-in-depth.
Refs: PR #1419 review (discussion_r3200014786 / re-review follow-up).
- AuditTrailController: same pattern on export() and clearAll().
Updated requireAdmin() docblock to reflect the new layering.
- ImportService: move setRequestImportJobId($importJobId) inside the
try block in importFromExcel and importFromCsv, so the set/clear pair
is fully wrapped — guarantees the request-scoped field is cleared
even if the set itself were ever to throw under a long-lived worker
reusing the singleton mapper. Refs: PR #1419 review
(discussion_r3187494469).
Refs #14191 parent 0ae9c3b commit 6b24be2
3 files changed
Lines changed: 40 additions & 28 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
110 | 110 | | |
111 | 111 | | |
112 | 112 | | |
113 | | - | |
114 | | - | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
115 | 118 | | |
116 | 119 | | |
117 | 120 | | |
| |||
274 | 277 | | |
275 | 278 | | |
276 | 279 | | |
277 | | - | |
| 280 | + | |
| 281 | + | |
278 | 282 | | |
279 | | - | |
| 283 | + | |
280 | 284 | | |
281 | 285 | | |
282 | 286 | | |
283 | 287 | | |
284 | 288 | | |
285 | | - | |
286 | 289 | | |
287 | 290 | | |
288 | 291 | | |
| |||
325 | 328 | | |
326 | 329 | | |
327 | 330 | | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
328 | 334 | | |
329 | 335 | | |
330 | 336 | | |
331 | 337 | | |
332 | | - | |
333 | | - | |
334 | 338 | | |
335 | 339 | | |
336 | 340 | | |
337 | 341 | | |
338 | | - | |
339 | 342 | | |
340 | 343 | | |
341 | 344 | | |
| |||
373 | 376 | | |
374 | 377 | | |
375 | 378 | | |
| 379 | + | |
| 380 | + | |
| 381 | + | |
376 | 382 | | |
377 | 383 | | |
378 | 384 | | |
379 | 385 | | |
380 | | - | |
381 | | - | |
382 | 386 | | |
383 | 387 | | |
384 | 388 | | |
385 | 389 | | |
386 | | - | |
387 | 390 | | |
388 | 391 | | |
389 | 392 | | |
| |||
394 | 397 | | |
395 | 398 | | |
396 | 399 | | |
| 400 | + | |
| 401 | + | |
| 402 | + | |
397 | 403 | | |
398 | 404 | | |
399 | 405 | | |
400 | 406 | | |
401 | | - | |
402 | | - | |
403 | 407 | | |
404 | 408 | | |
405 | 409 | | |
406 | 410 | | |
407 | | - | |
408 | 411 | | |
409 | 412 | | |
410 | 413 | | |
| |||
432 | 435 | | |
433 | 436 | | |
434 | 437 | | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
435 | 441 | | |
436 | 442 | | |
437 | 443 | | |
438 | 444 | | |
439 | | - | |
440 | | - | |
441 | 445 | | |
442 | 446 | | |
443 | | - | |
444 | 447 | | |
445 | 448 | | |
446 | 449 | | |
| |||
526 | 529 | | |
527 | 530 | | |
528 | 531 | | |
| 532 | + | |
| 533 | + | |
| 534 | + | |
529 | 535 | | |
530 | 536 | | |
531 | 537 | | |
532 | 538 | | |
533 | | - | |
534 | | - | |
535 | 539 | | |
536 | 540 | | |
537 | | - | |
538 | 541 | | |
539 | 542 | | |
540 | 543 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
77 | 77 | | |
78 | 78 | | |
79 | 79 | | |
80 | | - | |
81 | | - | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
82 | 84 | | |
83 | 85 | | |
84 | 86 | | |
| |||
368 | 370 | | |
369 | 371 | | |
370 | 372 | | |
371 | | - | |
| 373 | + | |
| 374 | + | |
372 | 375 | | |
373 | 376 | | |
374 | 377 | | |
| |||
481 | 484 | | |
482 | 485 | | |
483 | 486 | | |
484 | | - | |
| 487 | + | |
| 488 | + | |
485 | 489 | | |
486 | 490 | | |
487 | 491 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
352 | 352 | | |
353 | 353 | | |
354 | 354 | | |
355 | | - | |
356 | | - | |
| 355 | + | |
| 356 | + | |
| 357 | + | |
| 358 | + | |
| 359 | + | |
357 | 360 | | |
358 | | - | |
359 | 361 | | |
360 | 362 | | |
| 363 | + | |
| 364 | + | |
361 | 365 | | |
362 | 366 | | |
363 | 367 | | |
| |||
458 | 462 | | |
459 | 463 | | |
460 | 464 | | |
461 | | - | |
462 | 465 | | |
463 | 466 | | |
| 467 | + | |
| 468 | + | |
464 | 469 | | |
465 | 470 | | |
466 | 471 | | |
| |||
0 commit comments