Skip to content
Snippets Groups Projects
Commit 43aa5175 authored by Branson Craig Stephens's avatar Branson Craig Stephens
Browse files

Fixed bug with new defualt permissions.

parent 5ea3811b
No related branches found
No related tags found
No related merge requests found
......@@ -52,7 +52,7 @@ def assign_default_event_perms(event):
assign_perm(change_codename, g, event)
# If the event is an MDC event, then we expose it to LV-EM also
if event.search.name == 'MDC':
if event.search and event.search.name == 'MDC':
lvem = Group.objects.get(name='gw-astronomy:LV-EM')
assign_perm(view_codename, lvem, event)
assign_perm(change_codename, lvem, event)
......
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