From c58c46eda83893b3acd0f691a48a9645d1ff02a8 Mon Sep 17 00:00:00 2001 From: Miguel Nogueira Date: Sun, 28 Jun 2020 01:30:34 +0100 Subject: [PATCH] Fix error where wrong method is called --- app/Policies/FormPolicy.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/Policies/FormPolicy.php b/app/Policies/FormPolicy.php index eb7b90f..720b743 100644 --- a/app/Policies/FormPolicy.php +++ b/app/Policies/FormPolicy.php @@ -45,7 +45,7 @@ class FormPolicy */ public function create(User $user) { - return $this->user->can('admin.hiring.forms'); + return $user->can('admin.hiring.forms'); } /** @@ -69,7 +69,7 @@ class FormPolicy */ public function delete(User $user, Form $form) { - return $this->user->can('admin.hiring.forms'); + return $user->can('admin.hiring.forms'); } /**