Skip to content

Commit

Permalink
password reset fix & poll permission
Browse files Browse the repository at this point in the history
  • Loading branch information
Xinecraft committed Dec 12, 2024
1 parent c29b70f commit 677c9b3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/Http/Controllers/Admin/PollController.php
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ public function store(CreatePollRequest $request)

public function lock(Request $request, Poll $poll)
{
$this->authorize('update', Poll::class);
$this->authorize('update', $poll);

$poll->is_closed = true;
$poll->save();
Expand All @@ -87,7 +87,7 @@ public function lock(Request $request, Poll $poll)

public function unlock(Request $request, Poll $poll)
{
$this->authorize('update', Poll::class);
$this->authorize('update', $poll);

$poll->is_closed = false;
$poll->save();
Expand Down
2 changes: 1 addition & 1 deletion config/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@
'passwords' => [
'users' => [
'provider' => 'users',
'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'),
'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_resets'),
'expire' => 60,
'throttle' => 60,
],
Expand Down

0 comments on commit 677c9b3

Please sign in to comment.