Commit 97b35508 authored by Randall Leeds's avatar Randall Leeds

show auth if replying without being logged in

parent 806d3390
......@@ -239,6 +239,9 @@ class Annotation
annotator.publish 'annotationCreated', $scope.$modelValue
$scope.reply = ->
unless annotator.plugins.Auth.haveValidToken()
$rootScope.$broadcast 'showAuth', true
return
reply = annotator.createAnnotation()
Object.defineProperty reply, 'draft',
value: true
......
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