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
It should still be possible to edit the branch permission.
Trying to edit the branch permission will end up with an error message 'Unexpected error has occured'
Workaround Re-add the affected Branch Permission