User can't deploy project when he should, according to security configuration

We created a team that have rights to deploy specific project groups to specific environments. But users that belong to this team (directly or through an AD role) are not able to deploy as they should. It is as if the team didn’t exist or the user didn’t belong to it.

When looking at the “test permissions” page, it shows that the user has the rights. And if I look at the response to the request to http://pr-oct-01/Octopus/api/users/Users-XX/permissions, it shows the correct rights. But the user can’t deploy. We tried logging out and in, restarting the browser, etc.

I found what was the issue. The project life cycle was wrong, so it didn’t allow to deploy to an environment because it expected that it should have been deployed to a previous phase of the life cycle first