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

Changed group name for LV-EM access to new Observers group.

parent 985e5fc3
No related branches found
No related tags found
No related merge requests found
......@@ -337,7 +337,9 @@ def view(request, event):
can_expose_to_lvem, can_protect_from_lvem = get_lvem_perm_status(request,event)
context['can_expose_to_lvem'] = can_expose_to_lvem
context['can_protect_from_lvem'] = can_protect_from_lvem
context['lvem_group_name'] = settings.LVEM_GROUP
# Notice that the observers group is used here. This determines which group is
# given permission to access an event. We want it to be the observers group.
context['lvem_group_name'] = settings.LVEM_OBSERVERS_GROUP
if event.pipeline.name in settings.GRB_PIPELINES:
context['can_modify_t90'] = request.user.has_perm('gracedb.t90_grbevent')
......
......@@ -50,6 +50,7 @@ TEST_RUNNER = 'django.test.runner.DiscoverRunner'
# Some proper names related to authorization
LVC_GROUP = 'Communities:LSCVirgoLIGOGroupMembers'
LVEM_GROUP = 'gw-astronomy:LV-EM'
LVEM_OBSERVERS_GROUP = 'gw-astronomy:LV-EM:Observers'
EXEC_GROUP = 'executives'
EXTERNAL_ACCESS_TAGNAME = 'lvem'
......
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