security fix and fix parent pages
API CI/CD / Validate (composer + pint) (push) Successful in 3m7s
API CI/CD / Test (PHPUnit) (push) Failing after 5m46s
API CI/CD / Build frontend assets (push) Successful in 1m2s
API CI/CD / Security audit (push) Failing after 49s
API CI/CD / Deploy to shared hosting (PHP) (push) Has been skipped

This commit is contained in:
root
2026-07-06 02:14:16 -04:00
parent 39228168c8
commit 90f9857b06
43 changed files with 4323 additions and 132 deletions
@@ -22,15 +22,6 @@ class EnsurePrintRequestsAdminAccess
return response()->json(['message' => 'Unauthorized.'], 401);
}
if (app()->runningUnitTests()) {
try {
if (Auth::guard('sanctum')->user()) {
return $next($request);
}
} catch (\InvalidArgumentException) {
}
}
$roles = $user->roles()
->pluck('roles.name')
->map(fn ($name) => strtolower((string) $name))