Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix - codefresh_current_account data source returns 403 #143

Merged

Conversation

ilia-medvedev-codefresh
Copy link
Contributor

What

Remove unnecessary call to GetUserByID that requires admin token to get the account admins info. Instead infer admin info from /user endpoint which returns the info for all users. As admins are also users the data is there, it is enough to just locate the admins in this existing list.

Why

Closes #131

Notes

Checklist

@ilia-medvedev-codefresh
Copy link
Contributor Author

/test

1 similar comment
@ilia-medvedev-codefresh
Copy link
Contributor Author

/test

@ilia-medvedev-codefresh
Copy link
Contributor Author

/test

@ilia-medvedev-codefresh ilia-medvedev-codefresh merged commit e85e923 into master Mar 26, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[Bug]: codefresh_current_account data source returns 403
2 participants