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); }