Kunena 7.0.11 & Kunena 6.4.16 – Security Updates Released and K7.1 in RC1 2

The Kunena team has announce the arrival of three simultaneous security release : K6.4.16, K7.0.11 and K7.1 RC2. Just a reminder K6.4.16 receives only securities fixes untill end of 2026, so it's advised for users to upgrade to K7.0.11. K7.0.11 is the last release of the K7.0 because it's replaced by K7.1 branch with the stable release in the corner. The translations for K7.1 on crowdin.com/project/kunena-forum-7-1 needs to be checked or improved becasue it has been generated by TM (Translation Machine).

Solved Bug: Cannot delete user in Admin panel of Kunena

More
2 years 3 months ago - 2 years 3 months ago #231867 by Goldie
Hi,
tried to delete a user in Kunena 6.3.3 and got an error missing argument on get() in line 272 of administrator/components/com_kunena/src/Controller/UserController.php . It is about getting an instance for verification that user is not core.admin and then delete that user.

I modified code as follows to make it work
Code:
//           $instance = Factory::getContainer(UserFactoryInterface::class)->get()->loadUserById($user->userid);            if (Factory::getUser($user->userid)->authorise('core.admin')) {                  $this->app->enqueueMessage(Text::_('COM_KUNENA_USER_ERROR_CANNOT_DELETE_ADMINS'), 'error');                continue;            }            $result = $user->delete();
Last edit: 2 years 3 months ago by Goldie. Reason: Color codes eliminated
The following user(s) said Thank You: xillibit

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #231868 by xillibit
Hello,

Thanks for catch it and i have found an another way to fix it : github.com/Kunena/Kunena-Forum/commit/6b...fe6ea5887f12db001c57

I don't provide support by PM, because this can be useful for someone else.
The following user(s) said Thank You: Leen, Goldie

Please Log in or Create an account to join the conversation.

More
2 years 3 months ago #231869 by Goldie
Hi xillibit,

thanks for fast reply. Good to see that I am trusted as bug reporter.

Please Log in or Create an account to join the conversation.

Time to create page: 0.107 seconds