Skip to content

Improve team resource route handling - #10829

Merged
andrasbacsai merged 2 commits into
nextfrom
improve-resource-route-handling
Jul 2, 2026
Merged

andrasbacsai merged 2 commits into
nextfrom
improve-resource-route-handling

Conversation

@andrasbacsai

Copy link
Copy Markdown
Member

Summary

  • replace route resource lookup conditionals with a compact model map
  • use target-team role checks for team-level operations
  • add focused coverage for route and team behavior

Tests

  • vendor/bin/pint --dirty --format agent
  • php artisan test --compact tests/Unit/Policies/TeamPolicyTest.php
  • php -l app/Http/Middleware/CanUpdateResource.php
  • php -l app/Policies/TeamPolicy.php

@andrasbacsai
andrasbacsai changed the base branch from v4.x to next July 2, 2026 11:07
@andrasbacsai
andrasbacsai merged commit 39ae16d into next Jul 2, 2026
4 checks passed
@andrasbacsai
andrasbacsai deleted the improve-resource-route-handling branch July 2, 2026 12:34
@andrasbacsai andrasbacsai mentioned this pull request Jul 14, 2026
@github-actions github-actions Bot locked as resolved and limited conversation to collaborators Aug 14, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant