Skip to content

Commit

Permalink
correct user accessor
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Harvey committed Sep 26, 2024
1 parent 69c1fff commit f748801
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Http/Controllers/CP/Users/PasswordController.php
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public function update(Request $request, $user)
{
throw_unless($user = User::find($user), new NotFoundHttpException);

$updatingOwnPassword = $user->id() == $request->user()->id();
$updatingOwnPassword = $user->id() == User::fromUser($request->user())->id();

$this->authorize('editPassword', $user);

Expand Down

0 comments on commit f748801

Please sign in to comment.