joomla-cms icon indicating copy to clipboard operation
joomla-cms copied to clipboard

[4.2] Do not checkout a record when the user is not logged in

Open laoneo opened this issue 3 years ago • 0 comments

Summary of Changes

When not logged in users can create articles, an exception is thrown that the article can not be checked out when saving it.

Testing Instructions

  • Set the create permission for the public user group to allowed.
  • Create a "Create Article" menu item
  • Open the front end as not logged in user
  • Go to the "Create Article" menu item
  • Set a title in the form
  • Click on the "Save" button (NOT "Save and Close")

Actual result BEFORE applying this Pull Request

"Argument 'userId' of event onTableBeforeCheckout must be an integer " error is displayed.

Expected result AFTER applying this Pull Request

FrontPage is loaded with text "Article submitted.".

laoneo avatar Sep 21 '22 10:09 laoneo