1
0
Fork 0
mirror of https://github.com/overleaf/overleaf.git synced 2025-04-23 06:07:56 +00:00

Refine deactivate logic, only if member via token and not otherwise

This commit is contained in:
Shane Kilkelly 2017-11-03 11:46:00 +00:00
parent 3360688752
commit 3cafd0ac8f

View file

@ -640,7 +640,11 @@ define [
_setUserTCState(ide.$scope.user.id, newValue, isLocal)
else
$scope.reviewPanel.trackChangesOnForGuests = false
if $scope.isTokenMember
if (
$scope.isTokenMember &&
$scope.user?.id? &&
!_.any($scope.project.members, (m) -> m._id == $scope.user.id)
)
$scope.trackChangesOnForThisGuestClient = false
_setUserTCState(ide.$scope.user.id, false, isLocal)