Skip to content
Snippets Groups Projects
Commit 4bb1ecf6 authored by Brian Moe's avatar Brian Moe
Browse files

Allow all LIGO.ORG users to upload and add logs to events.

parent 837e998d
No related branches found
No related tags found
No related merge requests found
......@@ -125,9 +125,10 @@ def upload(request):
msg = "ERROR: missing arg(s)"
elif not event:
msg = "ERROR: Event '%s' does not exist" % graceid
elif event.submitter != request.ligouser and \
request.ligouser.name not in FOLLOWUP_USER_NAMES:
msg = "ERROR: Only submitter or authorized follow-ups can upload files"
# Removed per Patrick's request. 7/24/09 bmoe
# elif event.submitter != request.ligouser and \
# request.ligouser.name not in FOLLOWUP_USER_NAMES:
# msg = "ERROR: Only submitter or authorized follow-ups can upload files"
else:
#event issuer comment
log = EventLog(event=event,
......@@ -170,9 +171,10 @@ def log(request):
msg = "ERROR: missing arg(s)"
elif not event:
msg = "ERROR: Event '%s' does not exist" % graceid
elif event.submitter != request.ligouser and \
request.ligouser.name not in FOLLOWUP_USER_NAMES:
msg = "ERROR: Only submitter or authorized follow-ups can log messages"
# Removed per Patrick's request. 7/24/09 bmoe
# elif event.submitter != request.ligouser and \
# request.ligouser.name not in FOLLOWUP_USER_NAMES:
# msg = "ERROR: Only submitter or authorized follow-ups can log messages"
else:
#event issuer comment
log = EventLog(event=event, issuer=request.ligouser, comment=message)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment