CRM-17524 additional fix to joomla user record display
authorBrian Shaughnessy <brian@lcdservices.biz>
Fri, 27 Nov 2015 15:47:44 +0000 (10:47 -0500)
committerBrian Shaughnessy <brian@lcdservices.biz>
Fri, 27 Nov 2015 15:47:44 +0000 (10:47 -0500)
CRM/Utils/System/Joomla.php

index fa987f8a09a69cbdbe4e5e59050f2369361ec155..d2f08873362a79c24f600cbcc4d7e1a952a192e4 100644 (file)
@@ -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) {