coolify/app/Http/Controllers
Andras Bacsai 6a5fd40a5c refactor(policies): add uploadBackup ability and enforce it on backup upload endpoint
Introduce a dedicated `uploadBackup` ability on Application, Database,
Service, and ServiceDatabase policies (admin/owner only) and call
`$this->authorize('uploadBackup', $resource)` in `UploadController::upload`
so the backup-upload endpoint goes through the same policy layer as the
rest of the authorization refactor. Adds Pest coverage for each policy
variant plus HTTP-level checks.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-04-20 11:51:35 +02:00
..
Api Merge remote-tracking branch 'origin/next' into audit-policies 2026-04-19 17:40:12 +02:00
Webhook refactor(webhook): encrypt manual webhook secrets and tighten HMAC verification 2026-04-19 12:52:23 +02:00
Controller.php refactor: split invitation endpoint into GET (show) and POST (accept) 2026-03-26 14:30:27 +01:00
OauthController.php Revert "rector: arrrrr" 2025-01-07 15:31:43 +01:00
UploadController.php refactor(policies): add uploadBackup ability and enforce it on backup upload endpoint 2026-04-20 11:51:35 +02:00