Kunena 7.0.4 Released

The Kunena team has announce the arrival of Kunena 7.0.4 [K 7.0.4] in stable which is now available for download as a native Joomla extension for J! 5.4.x/6.0.x. This version addresses most of the issues that were discovered in K 6.2 / K 6.3 / K 6.4 and issues discovered during the last development stages of K 7.0

Solved Bug: Cannot delete user in Admin panel of Kunena

More
1 year 9 months ago - 1 year 9 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: 1 year 9 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
1 year 9 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
1 year 9 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.225 seconds