Fix error where wrong method is called

This commit is contained in:
Miguel Nogueira 2020-06-28 01:30:34 +01:00
parent 91c408fb4f
commit c58c46eda8
1 changed files with 2 additions and 2 deletions

View File

@ -45,7 +45,7 @@ class FormPolicy
*/ */
public function create(User $user) 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) public function delete(User $user, Form $form)
{ {
return $this->user->can('admin.hiring.forms'); return $user->can('admin.hiring.forms');
} }
/** /**