Commit 17b05012 authored by Randall Leeds's avatar Randall Leeds

Use 'single-player' check in store reload

This is semantically clearer than checking whether the tool is
highlight.
parent c2f7894e
......@@ -137,8 +137,9 @@ class App
# Sort out which annotations should remain in place.
user = $scope.persona
view = annotator.socialView.name
cull = (acc, annotation) ->
if annotator.tool is 'highlight' and annotation.user != user
if view is 'single-player' and annotation.user != user
acc.drop.push annotation
else if authorizeAction 'read', annotation, user
acc.keep.push annotation
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment