ucdavis / Sloth

Secure Ledger and online transaction hub
MIT License
3 stars 2 forks source link

Admin access can't add people #400

Closed jSylvestre closed 8 months ago

jSylvestre commented 10 months ago

Not sure if this is only a problem for adding brand new people, but if you don't have system access you get a something went wrong popup even though it finds the person on the screen.

jSylvestre commented 10 months ago

It is this line that is preventing it. https://github.com/ucdavis/Sloth/blob/master/Sloth.Web/Controllers/UsersController.cs#L86

jSylvestre commented 10 months ago

Need to pass the team in the route values here: https://github.com/ucdavis/Sloth/blob/8af9709518ae375c75461d2bb1fc66eeb1512f51/Sloth.Web/Views/Teams/Details.cshtml#L404-L415