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(api-admin-users-cognito): disable auth when loading your own user #2489

Merged
merged 1 commit into from
Jun 17, 2022

Conversation

Pavel910
Copy link
Collaborator

Changes

Closes #2488

This PR disables authorization on getCurrentUser and updateCurrentUser mutations. It's necessary because a user might belong to a group which doesn't allow management of users, and since these two mutations internally use the same adminUsers SDK, they will be unable to operate on the current user (self), thus being unable to get/update user information.

How Has This Been Tested?

Manually.

@Pavel910 Pavel910 added this to the 5.29.0 milestone Jun 16, 2022
@Pavel910 Pavel910 added the bug label Jun 16, 2022
@Pavel910 Pavel910 self-assigned this Jun 16, 2022
@Pavel910 Pavel910 merged commit d63dab3 into next Jun 17, 2022
@Pavel910 Pavel910 deleted the fix/get-current-user branch September 14, 2022 12:13
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.

Error on Account details page
1 participant