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

It is being possible to transform any user into another #2

Closed
douglasrafael opened this issue Jun 17, 2020 · 0 comments
Closed

It is being possible to transform any user into another #2

douglasrafael opened this issue Jun 17, 2020 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@douglasrafael
Copy link
Member

When updating a child by providing an educator's id, that child becomes an educator.
This occurs with any type of user.

Scenario:
Child BR001 and "5ee94ef35c6df16481650fad", being updated on the route to update educator: PATCH /v1/educators/5ee94ef35c6df16481650fad

Expected:

{
   code: '404',
   message: 'Educator not found!',
   description: 'Educator not found or already removed. A new operation for the same resource is not required.'
}

Returned:
The child becomes an educator with the username BR001.

@douglasrafael douglasrafael added the bug Something isn't working label Jun 17, 2020
@douglasrafael douglasrafael self-assigned this Jun 17, 2020
douglasrafael added a commit that referenced this issue Jun 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant