0
0
Fork 0
mirror of https://github.com/salesagility/SuiteCRM.git synced 2025-03-14 21:42:52 +00:00

Fix - non-admin not accessing external oauth connection

This commit is contained in:
Jack Anderson 2024-05-01 10:32:54 +01:00 committed by Jack Anderson
parent 17db4e7f53
commit 80ee82d822

View file

@ -56,11 +56,13 @@ class ExternalOAuthConnectionController extends SugarController
}
if (empty($_REQUEST['record']) && $_REQUEST['type'] === 'personal') {
$this->bean->type = 'personal';
$this->hasAccess = true;
return;
}
if (!empty($this->bean) && $_REQUEST['type'] === 'personal' && $this->bean->hasAccessToPersonalAccount()) {
$this->bean->type = 'personal';
$this->hasAccess = true;
}
}