Skip to content

Conversation

@hydrokat
Copy link

No description provided.

VoicePolicy.php Outdated

public function vote(User $user, Question $question)
{
return $question->user_id == $user->id;

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think the user cannot vote on his questions. So the policy should be with "!=", don't you think?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants