From 44eae936462452173d7b3b4b38a7703c686d9e4c Mon Sep 17 00:00:00 2001 From: Allen Shaw Date: Tue, 24 Oct 2017 17:14:22 -0500 Subject: [PATCH] Fix CRM-21348 Don't hide the "edit" link from logged-in users in profile listings in joomla front-end. --- CRM/Profile/Selector/Listings.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CRM/Profile/Selector/Listings.php b/CRM/Profile/Selector/Listings.php index 566667537b55..93e253435966 100644 --- a/CRM/Profile/Selector/Listings.php +++ b/CRM/Profile/Selector/Listings.php @@ -506,7 +506,7 @@ public function &getRows($action, $offset, $rowCount, $sort, $output = NULL, $ex if ($editLink && ($mask & CRM_Core_Permission::EDIT)) { // do not allow edit for anon users in joomla frontend, CRM-4668 $config = CRM_Core_Config::singleton(); - if (!$config->userFrameworkFrontend) { + if (!$config->userFrameworkFrontend || CRM_Core_Session::singleton()->getLoggedInContactID()) { $this->_editLink = TRUE; } }