Commit d0cef5d0 authored by Bryan  BRANCOTTE's avatar Bryan BRANCOTTE
Browse files

allows curators to edit mapping of public data source

Closes #235
parent c7227646
......@@ -168,7 +168,7 @@ def data_source_data_update(request, pk):
@login_required
def data_source_mapping_edit(request, pk):
data_source = get_object_or_404(mixins.only_editor_or_owned_queryset_filter(
data_source = get_object_or_404(mixins.only_editor_or_curator_or_owned_queryset_filter(
self=None,
request=request,
queryset=models.DataSource.objects,
......@@ -223,7 +223,7 @@ def data_source_mapping_edit(request, pk):
@login_required
def data_source_mapping_range_edit(request, pk):
data_source = get_object_or_404(mixins.only_editor_or_owned_queryset_filter(
data_source = get_object_or_404(mixins.only_editor_or_curator_or_owned_queryset_filter(
self=None,
request=request,
queryset=models.DataSource.objects,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment