Skip to content

Commit

Permalink
Fix salesagility#9855 - non-admin not accessing external oauth connec…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
jack7anderson7 committed Jul 23, 2024
1 parent 17db4e7 commit 80ee82d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions modules/ExternalOAuthConnection/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,13 @@ public function action_EditView() {
}

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;
}
}
Expand Down

0 comments on commit 80ee82d

Please sign in to comment.