- Posts: 50
- Thank you received: 0
The Kunena team has announce the arrival of Kunena 6.2.1 [K 6.2.1] which is now available for download as a native Joomla extension for J! 4.3.x/4.4.x/5.0.x. This version addresses most of the issues that were discovered in K 6.1.0 and issues discovered during the last development stages of K 6.1
Solved Kunena Latest - Latest Topics Bug
I installed Kunena 6.2.0 and KunenaLatest 6.0.3 (ßlus Kunena Discuss). I added a module KunenaLatest and configured to show All categories with latest topics of 1 month backwards.
Looks perfect but then a user noticed that it would also list posts from categories where normal users do not have Read access. If they click on such a post it will of course not open. I verified with Kunena 5 that such posts were never showed to normal users or guests. If I change configuration to Latest Posts instead it does not show posts from hidden categories. But of course every latest post of same topic are listed here.
I verifed PHP of KunenaLatest and found that it calls method getLatestTopic in libraries/src/Forum/Topic/KunenaTopicHelper.php . It calls KunenaCategoryHelper::getCategories .
So it is clear that problem resides with method getLatestTopic. It should only select topics from categories which are readable by current user (guest or normal user) while it should be visible to moderators for example. Using Kunena Menu Recent Topics works correctly .
My temporary solution:
- Instead of selecting category "All" I selected all categories manually incl. internal category for moderators
- I added parameter "read" to KunenaCategoryHelper::getCategories call
That is not a real solution but it works for the time being.
Can someone please confirm this bug and add to bug list ?
Best regards and keep the good work going, Goldie
I have made fix for both Kunena and the module kunena altest, the fixes will be in the next release, if you want try to a test site with nightly build :
I don't provide support by PM, because this can be useful for someone else.