Permalink
Browse files

[store][xs]: allow setting of account_id from annotation if not in he…

…aders.
  • Loading branch information...
1 parent b87b450 commit 9699f8088a73ec386367cfcc241065b5a63a55cb rgrp committed Mar 19, 2011
Showing with 2 additions and 1 deletion.
  1. +2 −1 annotator/store.py
View
@@ -56,7 +56,8 @@ def index():
def create_annotation():
if request.json:
annotation = Annotation.from_dict(request.json)
- annotation.account_id = g.account_id
+ if g.account_id:
+ annotation.account_id = g.account_id
annotation.save()
return jsonify(annotation.to_dict())
else:

0 comments on commit 9699f80

Please sign in to comment.