Commit d050aa0d authored by ujvari's avatar ujvari

Do not fill annotation.user

parent c1776c80
......@@ -141,10 +141,6 @@ class AppController
$scope.$watch 'auth.user', (newVal, oldVal) ->
return if newVal is undefined
# Annotator needs to access the user property without the permissions
# plugin and since auth service depends on annotator, the annotator
# service cannot use the auth service
annotator.user = newVal
reset()
$scope.login() if isFirstRun and not (newVal or oldVal)
......
......@@ -254,7 +254,7 @@ class Hypothesis extends Annotator
@element.scope().$evalAsync angular.noop
beforeAnnotationCreated: (annotation) ->
annotation.user = @user
annotation.user = @element.injector().get('auth').user
annotation.permissions = {}
@digest()
......@@ -322,7 +322,7 @@ class Hypothesis extends Annotator
delete query.user
when "single-player"
if @user?
query.user = @user
query.user = @element.injector().get('auth').user
else
delete query.user
......
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