joomla-cms
joomla-cms copied to clipboard
[4.2] Do not checkout a record when the user is not logged in
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.".