From a8e5af2a9415ed2f54483730b57e4dd39a37b6e8 Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Fri, 27 Nov 2015 10:47:44 -0500 Subject: [PATCH] CRM-17524 additional fix to joomla user record display --- CRM/Utils/System/Joomla.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Utils/System/Joomla.php b/CRM/Utils/System/Joomla.php index fa987f8a09..d2f0887336 100644 --- a/CRM/Utils/System/Joomla.php +++ b/CRM/Utils/System/Joomla.php @@ -686,7 +686,7 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base { $uid = CRM_Core_BAO_UFMatch::getUFId($contactID); $userRecordUrl = NULL; // if logged in user has user edit access, then allow link to other users joomla profile - if (JFactory::getUser()->authorise('core.admin', 'com_users')) { + if (JFactory::getUser()->authorise('core.edit', 'com_users')) { return CRM_Core_Config::singleton()->userFrameworkBaseURL . "index.php?option=com_users&view=user&task=user.edit&id=" . $uid; } elseif (CRM_Core_Session::singleton()->get('userID') == $contactID) { -- 2.25.1