mirror of
https://github.com/overleaf/overleaf.git
synced 2025-02-28 18:32:16 +00:00
Refine deactivate logic, only if member via token and not otherwise
This commit is contained in:
parent
3360688752
commit
3cafd0ac8f
1 changed files with 5 additions and 1 deletions
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue