fix: allow project admins to delete projects (KAN-64)

This commit is contained in:
2026-10-01 15:16:03 +00:00
parent 393d074bb7
commit 723285f820
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;
}
/**