From 55904b50f3ab5a90cfa14e7d7c729cc937748453 Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Fri, 6 Nov 2015 23:24:28 -0500 Subject: [PATCH] CRM-17524 user id link less restrictive --- CRM/Utils/System/Joomla.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/CRM/Utils/System/Joomla.php b/CRM/Utils/System/Joomla.php index 46b4b54bf1..fa987f8a09 100644 --- a/CRM/Utils/System/Joomla.php +++ b/CRM/Utils/System/Joomla.php @@ -685,8 +685,8 @@ class CRM_Utils_System_Joomla extends CRM_Utils_System_Base { public function getUserRecordUrl($contactID) { $uid = CRM_Core_BAO_UFMatch::getUFId($contactID); $userRecordUrl = NULL; - // if logged in user is super user, then he can view other users joomla profile - if (JFactory::getUser()->authorise('core.admin')) { + // if logged in user has user edit access, then allow link to other users joomla profile + if (JFactory::getUser()->authorise('core.admin', '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