laravelista / comments

Native comments for your Laravel application.
MIT License
745 stars 144 forks source link

Fix guest validation rules #58

Closed rocramer closed 5 years ago

rocramer commented 5 years ago

See issue #57

(wrong issue reference in commit message )

mabasic commented 5 years ago

Hi @rocramer. Thank you for pointing this out to me.

I have seen the code and I think that it is missing a check in the if statement.

if (!auth()->check() and config('comments.guest_commenting') == true) {

This way it first checks if the user is not logged in, and then it checks if guest_commenting is enabled. I will need to check this feature in more details before moving forward.

mabasic commented 5 years ago

Tested and works. Thank you :heart: