fix: allow project admins to delete projects (KAN-64)
CI/CD / preconditions (pull_request) Successful in 2s
CI/CD / test_and_check_app (pull_request) Failing after 1m52s
CI/CD / Publish immutable image (pull_request) Skipped

This commit is contained in:
2026-09-30 11:01:04 +02:00
parent f4434a3203
commit 09f695a9bc
5 changed files with 91 additions and 7 deletions
+1 -1
View File
@@ -11,7 +11,7 @@ class DeleteProjectRequest extends FormRequest
{
public function authorize(): bool
{
return $this->user()?->can('access-admin') ?? false;
return $this->user()?->can('admin-project', $this->route('project')) ?? false;
}
/**