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

Merge branch 'master' of ligo-vcs.phys.uwm.edu:/usr/local/git/gracedb

parents 8e64f5bd 5ea3811b
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,12 @@ def assign_default_event_perms(event):
assign_perm(view_codename, g, 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':
lvem = Group.objects.get(name='gw-astronomy:LV-EM')
assign_perm(view_codename, lvem, event)
assign_perm(change_codename, lvem, event)
#-------------------------------------------------------------------------------
# A wrapper for views that checks whether the user is internal, and if not
# returns a 403.
......
This diff is collapsed.
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