Steps to Reproduce:
- Add a user as a group member in a team account -- make sure the user has at least write access to repos
- Add a branch permission to a repo, and add the user into the branch permission
- Remove the user from the team
The removed user should not appear in the branch permission anymore. Once a user is removed from a team, their permissions should be removed as well.
The removed user still appears in the branch permission -- At the same time, trying to edit the branch permission will end up with an error message 'Unexpected error has occured'
Workaround Re-add the affected Branch Permission