diff --git a/app/Http/Controllers/VacancyController.php b/app/Http/Controllers/VacancyController.php index 89eacce..4e1f048 100644 --- a/app/Http/Controllers/VacancyController.php +++ b/app/Http/Controllers/VacancyController.php @@ -113,7 +113,7 @@ class VacancyController extends Controller public function edit(Request $request, Vacancy $position) { - $this->authorize('update', $vacancy); + $this->authorize('update', $position); return view('dashboard.administration.editposition') ->with('vacancy', $position); }