Skip to content
Snippets Groups Projects
Commit 91618857 authored by Tanner Prestegard's avatar Tanner Prestegard Committed by GraceDB
Browse files

Bugfix for API log msg creation for external users

Fixed case where external user creates a log message with no
tags so that add_tag permission is not incorrectly required.
parent e7f76e35
No related branches found
No related tags found
No related merge requests found
......@@ -211,7 +211,7 @@ class SupereventLogModelPermissions(FunctionalModelPermissions):
# and only the default 'analyst_comments' tag is attached,
# that's fine.
pass
elif tag_names is not None:
elif tag_names:
# If any tags, require add_tag permission.
required_permissions.append('superevents.tag_log')
......
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