From 6e7b84aa15cab94181a42a70411a4615e5646d09 Mon Sep 17 00:00:00 2001 From: David Jardin Date: Thu, 13 Jun 2024 20:31:41 +0200 Subject: [PATCH 1/2] Fix com_content articles batch modal button logic --- .../components/com_content/src/View/Articles/HtmlView.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/administrator/components/com_content/src/View/Articles/HtmlView.php b/administrator/components/com_content/src/View/Articles/HtmlView.php index 3857fd64d94c4..d6f926d730dc0 100644 --- a/administrator/components/com_content/src/View/Articles/HtmlView.php +++ b/administrator/components/com_content/src/View/Articles/HtmlView.php @@ -234,7 +234,10 @@ protected function addToolbar() if ( $user->authorise('core.create', 'com_content') && $user->authorise('core.edit', 'com_content') - && $user->authorise('core.execute.transition', 'com_content') + && ( + !ComponentHelper::getParams('com_content')->get('workflow_enabled') + || $user->authorise('core.admin', 'com_content') + ) ) { $childBar->popupButton('batch', 'JTOOLBAR_BATCH') ->selector('collapseModal') From 08b50172c8bc0a37cbfeac9b924f0fcb7156dbf4 Mon Sep 17 00:00:00 2001 From: David Jardin Date: Thu, 13 Jun 2024 20:39:09 +0200 Subject: [PATCH 2/2] remove check completly --- .../components/com_content/src/View/Articles/HtmlView.php | 4 ---- 1 file changed, 4 deletions(-) diff --git a/administrator/components/com_content/src/View/Articles/HtmlView.php b/administrator/components/com_content/src/View/Articles/HtmlView.php index d6f926d730dc0..2dd90c647d4fe 100644 --- a/administrator/components/com_content/src/View/Articles/HtmlView.php +++ b/administrator/components/com_content/src/View/Articles/HtmlView.php @@ -234,10 +234,6 @@ protected function addToolbar() if ( $user->authorise('core.create', 'com_content') && $user->authorise('core.edit', 'com_content') - && ( - !ComponentHelper::getParams('com_content')->get('workflow_enabled') - || $user->authorise('core.admin', 'com_content') - ) ) { $childBar->popupButton('batch', 'JTOOLBAR_BATCH') ->selector('collapseModal')