- Posts: 50
- Thank you received: 0
Kunena 6.2.1 Released with module latest 6.0.4 and module kunena stats 6.0.4
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
1 month 1 week ago - 1 month 1 week ago #1
by Goldie
Kunena Latest - Latest Topics Bug was created by Goldie
Hi,
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:
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 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
Code:
$categories = KunenaCategoryHelper::getCategories($categories, $reverse, "read");
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
Last edit: 1 month 1 week ago by Goldie.
Please Log in or Create an account to join the conversation.
1 month 3 days ago #2
by xillibit
I don't provide support by PM, because this can be useful for someone else.
Replied by xillibit on topic Kunena Latest - Latest Topics Bug
Hello,
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 : For the Kunena latest module, you need to select All if you haven't selected categories and save it
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 : For the Kunena latest module, you need to select All if you haven't selected categories and save it
I don't provide support by PM, because this can be useful for someone else.
Please Log in or Create an account to join the conversation.
1 month 2 days ago #3
by Leen
L.v.d.A
Replied by Leen on topic Kunena Latest - Latest Topics Bug
During the test here locally, everything seems to be fine
L.v.d.A
The following user(s) said Thank You: xillibit
Please Log in or Create an account to join the conversation.
1 month 2 days ago - 1 month 2 days ago #4
by Goldie
Replied by Goldie on topic Kunena Latest - Latest Topics Bug
Last edit: 1 month 2 days ago by Goldie.
Please Log in or Create an account to join the conversation.
1 month 2 days ago #5
by Goldie
Replied by Goldie on topic Kunena Latest - Latest Topics Bug
Please Log in or Create an account to join the conversation.
Time to create page: 0.268 seconds