From 5385c869c35790a65035d9fa3a996d347ab62612 Mon Sep 17 00:00:00 2001 From: Brian Shaughnessy Date: Thu, 14 Jul 2016 08:40:39 -0400 Subject: [PATCH] CRM-19079 condition profile edit permission check --- CRM/Profile/Form/Edit.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/CRM/Profile/Form/Edit.php b/CRM/Profile/Form/Edit.php index ee114d93d2..ac7f8dfec0 100644 --- a/CRM/Profile/Form/Edit.php +++ b/CRM/Profile/Form/Edit.php @@ -96,8 +96,9 @@ class CRM_Profile_Form_Edit extends CRM_Profile_Form { if ($id != $userID) { // do not allow edit for anon users in joomla frontend, CRM-4668, unless u have checksum CRM-5228 + // see also CRM-19079 for modifications to the condition $config = CRM_Core_Config::singleton(); - if ($config->userFrameworkFrontend) { + if ($config->userFrameworkFrontend && $config->userSystem->is_joomla) { CRM_Contact_BAO_Contact_Permission::validateOnlyChecksum($id, $this); } else { -- 2.25.1