From c70b2f70b0203c6db5253856bc1fd0045a647708 Mon Sep 17 00:00:00 2001 From: Tuan Pham Ngoc Date: Fri, 27 Aug 2021 10:38:45 +0700 Subject: [PATCH 1/3] Prevent changing created_by if the current user is not allowed to access to com_users --- .../components/com_weblinks/models/weblink.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/administrator/components/com_weblinks/models/weblink.php b/src/administrator/components/com_weblinks/models/weblink.php index cb238fb..2830045 100644 --- a/src/administrator/components/com_weblinks/models/weblink.php +++ b/src/administrator/components/com_weblinks/models/weblink.php @@ -155,6 +155,12 @@ class WeblinksModelWeblink extends JModelAdmin $form->setFieldAttribute('publish_down', 'filter', 'unset'); } + // Don't allow to change the created_by user if not allowed to access com_users. + if (!JFactory::getUser()->authorise('core.manage', 'com_users')) + { + $form->setFieldAttribute('created_by', 'filter', 'unset'); + } + return $form; } From f8ea546cfe6429a32cd8f1463f4375bf8c9f3e05 Mon Sep 17 00:00:00 2001 From: Tuan Pham Ngoc Date: Sat, 28 Aug 2021 17:01:14 +0700 Subject: [PATCH 2/3] Let's build script update version number --- src/plugins/editors-xtd/weblink/weblink.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/plugins/editors-xtd/weblink/weblink.xml b/src/plugins/editors-xtd/weblink/weblink.xml index 29c425a..f1b2f37 100644 --- a/src/plugins/editors-xtd/weblink/weblink.xml +++ b/src/plugins/editors-xtd/weblink/weblink.xml @@ -7,7 +7,7 @@ GNU General Public License version 2 or later; see LICENSE.txt admin@joomla.org www.joomla.org - 3.7.0 + ##VERSION## PLG_EDITORS-XTD_WEBLINK_XML_DESCRIPTION ##FILES## From 3883eafa37a5fbf8fcdc69b4d56c94b8ba0a87a1 Mon Sep 17 00:00:00 2001 From: Tuan Pham Ngoc Date: Sat, 28 Aug 2021 20:35:09 +0700 Subject: [PATCH 3/3] Update version number --- jorobo.dist.ini | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/jorobo.dist.ini b/jorobo.dist.ini index b157b82..55820cb 100644 --- a/jorobo.dist.ini +++ b/jorobo.dist.ini @@ -1,5 +1,5 @@ extension = weblinks -version = 3.7.0 +version = 3.9.0-rc1 source = src target = package