3 Commits

Author SHA1 Message Date
Patrick Smith
7b2a099ef3 Filter environments for user with given project id
Previously, calling `Environment.for_user(user, project)` would return
environments a user has access to across all projects. Now, we will only
return the relevant environements. This was the cause of a visual bug
where extra environments were shown in the project list.
2018-09-30 22:06:10 -04:00
Montana
18776aa71c Fix tests 2018-09-25 11:13:24 -04:00
Montana
3a978a1673 Fix bugs and write a test 2018-09-25 11:13:24 -04:00