Skip to content

[FIX] Bugs in isUserFromParams helper#6904

Merged
engelgabriel merged 1 commit into
RocketChat:developfrom
abrom:fix-is-user-from-params
May 9, 2017
Merged

[FIX] Bugs in isUserFromParams helper#6904
engelgabriel merged 1 commit into
RocketChat:developfrom
abrom:fix-is-user-from-params

Conversation

@abrom

@abrom abrom commented May 6, 2017

Copy link
Copy Markdown
Contributor

@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 requested a review from graywolf336 May 6, 2017 17:40
@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.

3 participants