From 8e85e08171c8309d74dbc541c5def5fb038c02fa Mon Sep 17 00:00:00 2001 From: Miguel Nogueira Date: Thu, 3 Sep 2020 02:52:21 +0100 Subject: [PATCH] Vacancy tweaks --- app/Http/Controllers/VacancyController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Http/Controllers/VacancyController.php b/app/Http/Controllers/VacancyController.php index f64de07..fdb5ce0 100644 --- a/app/Http/Controllers/VacancyController.php +++ b/app/Http/Controllers/VacancyController.php @@ -113,9 +113,9 @@ class VacancyController extends Controller public function edit(Request $request, Vacancy $vacancy) { - $this->authorize('update', $position); + $this->authorize('update', $vacancy); return view('dashboard.administration.editposition') - ->with('vacancy', $position); + ->with('vacancy', $vacancy); }