mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
Only add token member if they're not also a collaborator
This commit is contained in:
parent
dc39e447b2
commit
b32088ee6b
1 changed files with 2 additions and 1 deletions
|
@ -83,7 +83,8 @@ 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"
|
||||||
$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 =
|
$scope.commentState =
|
||||||
adding: false
|
adding: false
|
||||||
|
|
Loading…
Reference in a new issue