Commit c23fcf7d authored by Aron Carroll's avatar Aron Carroll

Default all replies to Public

This fixes the annoying issue with replies defaulting to private
all the time.
parent e737a3a5
......@@ -159,7 +159,12 @@ AnnotationController = [
# Construct the reply.
references = [references..., id]
reply = {references, uri}
# If replying to a public annotation make the response public.
if 'group:__world__' in model.permissions.read or []
permissions = {read: ['group:__world__']}
reply = {references, uri, permissions}
annotator.publish 'beforeAnnotationCreated', reply
###*
......
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