From cc93b2f8f9f7009d3fa2b861c7be01e0ad2218dc Mon Sep 17 00:00:00 2001 From: Seamus Lee <seamus.lee@jmaconsulting.biz> Date: Wed, 8 Jul 2020 02:36:20 -0400 Subject: [PATCH] AOSL-95 Remove roles code as this is shifted in the jma customisations module --- aoservicelisting.civix.php | 7 ------- 1 file changed, 7 deletions(-) diff --git a/aoservicelisting.civix.php b/aoservicelisting.civix.php index 9678002..fe52e89 100644 --- a/aoservicelisting.civix.php +++ b/aoservicelisting.civix.php @@ -590,13 +590,6 @@ class CRM_Aoservicelisting_ExtensionUtil { if (empty($ufId)) { return FALSE; } - - $authorizedContact = user_load_by_name($userName); - if (!empty($authorizedContact)) { - $roles = array_merge($authorizedContact->getRoles(), ['authorized_contact']); - $authorizedContact->set('roles', array_unique($roles)); - $authorizedContact->save(); - } return TRUE; } -- GitLab