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] Bugs in isUserFromParams helper #6904

Merged
merged 1 commit into from
May 9, 2017
Merged

[FIX] Bugs in isUserFromParams helper #6904

merged 1 commit into from
May 9, 2017

Conversation

abrom
Copy link
Contributor

@abrom abrom commented May 6, 2017

@RocketChat/core

Fixed up definition of isUserFromParams to handle case where no params are passed
=> assumption is no user type params to mean 'current user'
Fixed bug where POST/PUT request method didn't use bodyParams in place of queryParams

Refactored getUserFromParams to remove duplication of calls to find user

…ams are passed

 => assumption is no user type params to mean 'current user'
Refactored `getUserFromParams` to remove duplication of calls to find user
@engelgabriel engelgabriel added this to the 0.57.0 milestone May 9, 2017
@engelgabriel engelgabriel merged commit e7dd4b8 into RocketChat:develop May 9, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants