mirror of
https://github.com/salesagility/SuiteCRM.git
synced 2025-03-14 21:42:52 +00:00
Fix #9855 - non-admin not accessing external oauth connection
This commit is contained in:
parent
17db4e7f53
commit
80ee82d822
1 changed files with 2 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue