Commit fffa89ee authored by Aron Carroll's avatar Aron Carroll

Assign the user to the annotation in the auth service

parent 1adf3c3f
......@@ -20,6 +20,8 @@ class Auth
# TODO: Remove this once Auth has been migrated.
$rootScope.$on 'beforeAnnotationCreated', (event, annotation) =>
annotation.user = @user
annotation.permissions = {}
annotator.publish('beforeAnnotationCreated', annotation)
$rootScope.$on 'annotationCreated', (event, 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