Project-Create - Get user from httpcontext #139
Labels
bug
Something isn't working
priority
Only assign this label if it's asked to assign this label
requires development
Describe the bug
When creating a project in the Frontend, we do not send the user id. Leading to bad requests since no user can be coupled to the project. The same goes for the Postman tests that I'm setting up with ACL now.
Expected behavior
In the backend we should retrieve the user id from the HttpContext instead. We should add an extension method that can be called when this is needed, I suspect more endpoints needing this in the future.
We should also remove the user id from the resource altogether since we do not want people impersonating others when making a request.
The text was updated successfully, but these errors were encountered: