Only add token member if they're not also a collaborator

This commit is contained in:
Shane Kilkelly 2017-10-20 13:38:52 +01:00
parent dc39e447b2
commit b32088ee6b

View file

@ -83,7 +83,8 @@ define [
if $scope.project?.tokenMembers?
for member in tokenMembers
if member.privileges == "readAndWrite"
$scope.reviewPanel.formattedProjectTokenMembers[member._id] = formatUser(member)
if !_.find($scope.reviewPanel.formattedProjectMembers, (m) -> m.id == member._id)
$scope.reviewPanel.formattedProjectTokenMembers[member._id] = formatUser(member)
$scope.commentState =
adding: false