Fix error causing tasks to be un-deletable.

closes #786
This commit is contained in:
Dane Everitt 2017-12-01 20:10:06 -06:00
parent 47f2ca0673
commit 20beb2f280
3 changed files with 3 additions and 5 deletions

View file

@ -49,7 +49,7 @@ class ScheduleBelongsToServer
$scheduleId = $this->hashids->decodeFirst($request->route()->parameter('schedule'), 0);
$schedule = $this->repository->getScheduleWithTasks($scheduleId);
if (object_get($schedule, 'server_id') !== $server->id) {
if ($schedule->server_id !== $server->id) {
throw new NotFoundHttpException;
}