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,6 +83,7 @@ define [
if $scope.project?.tokenMembers? if $scope.project?.tokenMembers?
for member in tokenMembers for member in tokenMembers
if member.privileges == "readAndWrite" if member.privileges == "readAndWrite"
if !_.find($scope.reviewPanel.formattedProjectMembers, (m) -> m.id == member._id)
$scope.reviewPanel.formattedProjectTokenMembers[member._id] = formatUser(member) $scope.reviewPanel.formattedProjectTokenMembers[member._id] = formatUser(member)
$scope.commentState = $scope.commentState =