Skip to content

Commit

Permalink
chore: adjusts comment
Browse files Browse the repository at this point in the history
  • Loading branch information
nunomaduro committed Mar 22, 2024
1 parent 5553f48 commit 6e0eef1
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/Policies/QuestionPolicy.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,9 @@ public function delete(User $user, Question $question): bool
return $user->id === $question->to_id;
}

/**
* Determine whether the user can pin the question.
*/
public function pin(User $user, Question $question): bool
{
return $user->id === $question->to_id
Expand Down

0 comments on commit 6e0eef1

Please sign in to comment.