Merge pull request #579 from sharelatex/sk-tc-toggle-access-control

Disallow toggling track-changes via keyboard if not available on project
This commit is contained in:
Shane Kilkelly 2017-08-24 10:21:37 +01:00 committed by GitHub
commit 2c8e16ff4a

View file

@ -648,7 +648,7 @@ define [
applyTrackChangesStateToClient(state)
$scope.toggleTrackChangesFromKbdShortcut = () ->
if !$scope.project.features.trackChangesVisible
if !($scope.project.features.trackChangesVisible && $scope.project.features.trackChanges)
return
$scope.toggleTrackChangesForUser !$scope.reviewPanel.trackChangesState[ide.$scope.user.id].value, ide.$scope.user.id