×
Kunena 5.1 RC 3 Released (16 Feb 2018)

The Kunena team is proud to announce the arrival of Kunena 5.1.0 RC3 [K 5.1.0] which is now available for download as a native Joomla extension for J! 3.8.x. This version addresses most of the issues that were discovered in K 5.1 and issues discovered during the development stages of K 5.1. This is a RC release.

Question Bug: Configuration 'User Edits - Yes, except no replies' not working properly

More
1 month 3 weeks ago #11 by WolfgangOWL
WolfgangOWL replied the topic: Bug: Configuration 'User Edits - Yes, except no replies' not working properly
Here is the optimized code:

if (intval($config->useredit) == 0)
{
    return new KunenaExceptionAuthorise(JText::_('COM_KUNENA_POST_EDIT_NOT_ALLOWED'), 403);
}
elseif ((intval($config->useredit) == 2) && $this->getTopic()->getReplies() && ($this->getTopic()->last_post_id > $this->id))
{
    return new KunenaExceptionAuthorise(JText::_('COM_KUNENA_POST_EDIT_NOT_ALLOWED'), 403);
}

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

  • Not Allowed: to create new topic.
  • Not Allowed: to reply.
  • Not Allowed: to add attachements.
  • Not Allowed: to edit your message.
Time to create page: 0.070 seconds