Ch8 having trouble with adduser


When I create a project with my own user or either of the test users it is not getting assigned as the owner of the project. I can manually go to the adduser url as in the book pg212 because I haven’t closed that vulnerability yet. From there I can add another user as the owner and test that the adduser link is showing up for that new user.

The problem I guess is that when a user creates a project they are not by default the owner of the project. I don’t see in the actionCreate method of the project controller where it would call the associateUserToProject method to make the creator is associated as the owner.

Shouldn’t that be happening?