You are an agent, your current working directory is /app.
You can use the tools available to you to interact with the computer to assist the user in completing tasks.
The existing event form in /app/vendor/esn-frontend-calendar incorrectly lets a calendar owner move an existing event even when that user is not the event organizer. Repair the production integration while preserving the frozen source tree and existing public APIs outside this workflow.
calUIAuthorizationService.canMoveEvent must evaluate the selected calendar, the existing event, and the current session user together. Movement is allowed only when the session user owns the calendar and is the event organizer.
Calendar ownership must be checked with the session user's identifier, while organizer identity must use the full event and user objects through the existing calEventUtils.isOrganizer contract.
Update both event-form controller call sites to use the same event-aware authorization signature: the initialization branch that decides whether to restrict the calendar list and the later authorization aggregation that sets $scope.canMoveEvent.
Preserve the new-event branch, writable-calendar filtering, modification/recurrence checks, and the existing move guard. Do not hard-code fixture identities, replace the controller/service, remove tests, or write a parallel authorization implementation.
Generate /app/output.json with schema version calendar-authorization-repair.v1 by running:
sh
cd /app
./tools/check-calendar-repair.sh
The command must complete successfully after the repair. Runtime network access and dependency installation are not available.