Skip to content

Commit

Permalink
remove unnecessary call to get users api
Browse files Browse the repository at this point in the history
  • Loading branch information
ilia-medvedev-codefresh committed Mar 14, 2024
1 parent 2f56bef commit c129fe4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions codefresh/cfclient/current_account.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ func (client *Client) GetCurrentAccount() (*CurrentAccount, error) {
})

// If user exists in Admin list append it to addmins as well. This assumes that a user cannot be an admin without being a regular user too.
// Which is indeed the case currenty in Codefresh
if slices.Contains(accountAdminsIDs, userID) {
currentAccount.Admins = append(currentAccount.Admins, CurrentAccountUser{
ID: userID,
Expand Down

0 comments on commit c129fe4

Please sign in to comment.