Resolve the server and network in Destination::addServer() and ::promote() through ownedByCurrentTeam() before use, authorize the update against the resource, and pass the validated IDs into attach()/detach()/update(). Errors are routed through handleError() to match the sibling removeServer() method. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| Application | ||
| Database | ||
| New | ||
| Resource | ||
| Service | ||
| Shared | ||
| AddEmpty.php | ||
| CloneMe.php | ||
| DeleteEnvironment.php | ||
| DeleteProject.php | ||
| Edit.php | ||
| EnvironmentEdit.php | ||
| Index.php | ||
| Show.php | ||