mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-21 20:47:08 -05:00
fix limits on sharing, account for both members and invites.
This commit is contained in:
parent
ab2fe1de97
commit
c8ee803570
1 changed files with 1 additions and 1 deletions
|
@ -19,7 +19,7 @@ define [
|
|||
, 200
|
||||
|
||||
INFINITE_COLLABORATORS = -1
|
||||
$scope.$watch "project.members.length", (noOfMembers) ->
|
||||
$scope.$watch "(project.members.length + project.invites.length)", (noOfMembers) ->
|
||||
allowedNoOfMembers = $scope.project.features.collaborators
|
||||
$scope.canAddCollaborators = noOfMembers < allowedNoOfMembers or allowedNoOfMembers == INFINITE_COLLABORATORS
|
||||
|
||||
|
|
Loading…
Reference in a new issue