Welcome to the Question2Answer Q&A. There's also a demo if you just want to try it out.
0 votes
1.1k views
in Q2A Core by
closed by
I set the permission "Asking questions" to "Registered users with email confirmed" few days ago. Before users were allowed to ask as guests.

Today I see that anonymous guests can still posts questions!

Is that a bug? Or can they do so because of a cookie set? What could be the reason?
Q2A version: 1.8.0
closed with the note: clarified
by
Have you tried completely disabling that plugin and seeing if people can still post anonymously? Also maybe try contacting that user and ask exactly what they did.
by
your plugin is not a problem definitely. It seems to me that it is a caching issue. On lines 168 below, if (isset($userid) &&  $userid > 0 && qa_opt('permit_post_q') != QA_PERMIT_ALL) statement can be written to fix it. Note that I have not test it as I didnt experience such as problem.

https://github.com/q2a/question2answer/blob/1f39ae44adf42c83042be631e39373893a3ec969/qa-include/pages/ask.php
by
reshown by
I tend to also think it is a caching issue (I am using the q2a-caching plugin)... and as I see, the function qa_user_permit_error() checks by $userfields = qa_get_logged_in_user_cache(); --- and then takes the userid from the cache. But still weird. Maybe here it would be better to fetch the userdata from non-cache?

"maybe try contacting" - I did post a comment to their question today. Let's hope those user answer.
by
Please everyone, imagine me giving myself a #facepalm!

It is my new "q2apro-account-deletion" plugin that removes the userid from the post after a user decided to delete his account...

THIS is why the posts were anonymous!

Sorry for all the guessing, but finally found the answer! Thanks a lot.
...