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(users): allow changing primary body. Fixes HELP-1222 #101

Merged
merged 1 commit into from
Aug 24, 2020

Conversation

serge1peshcoff
Copy link
Member

now you can update your primary body not only if you have update:member permission, but also if you're trying to change your own primary body, which is how it should've worked before.
also fixed a test which was incorrect.

expect(res.body.success).toEqual(false);
expect(res.body).not.toHaveProperty('data');
expect(res.body).toHaveProperty('message');
expect(res.statusCode).toEqual(200);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are you changing this test? Was it wrong from the start or is this only for the member itself?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yeah, it wasn't supposed to work like that and was wrong from the start (it expected for the backend to return 403, while the backend should return 200 in real life)

@serge1peshcoff serge1peshcoff merged commit 79673e2 into master Aug 24, 2020
serge1peshcoff pushed a commit that referenced this pull request Aug 24, 2020
## [1.23.2](1.23.1...1.23.2) (2020-08-24)

### Bug Fixes

* **users:** allow changing primary body. Fixes HELP-1222 ([#101](#101)) ([79673e2](79673e2))
@serge1peshcoff
Copy link
Member Author

🎉 This PR is included in version 1.23.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@WikiRik WikiRik deleted the allow-changing-primary-body branch September 22, 2020 16:35
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.

2 participants