fix(api): validate server ownership in domains endpoint and scope activity lookups

- Add team-scoped server validation to domains_by_server API endpoint
- Filter applications and services to only those on the requested server
- Scope ActivityMonitor activity lookups to the current team
- Fix query param disambiguation (query vs route param) in domains endpoint
- Fix undefined $ip variable in services domain collection

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
Andras BacsaiandClaude Opus 4.6 committed 2026-03-25 16:20:53 +01:00
1 parent 69ea7dfa50
commit a94517f452
4 files changed
+140 -10

No files matched your search

+12 -1
View File
@@ -55,7 +55,18 @@ class ActivityMonitor extends Component
return;
}
$this->activity = Activity::find($this->activityId);
$activity = Activity::find($this->activityId);
if ($activity) {
$teamId = data_get($activity, 'properties.team_id');
if ($teamId && $teamId !== currentTeam()?->id) {
$this->activity = null;
return;
}
}
$this->activity = $activity;
}
public function updatedActivityId($value)