Skip to content

Commit

Permalink
Fix upload (#4392)
Browse files Browse the repository at this point in the history
  • Loading branch information
haneslinger authored Nov 8, 2023
1 parent 7de6ded commit 53eb1a1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions seed/lib/superperms/orgs/decorators.py
Original file line number Diff line number Diff line change
Expand Up @@ -270,8 +270,9 @@ def assert_hierarchy_access(request, property_id_kwarg=None, property_view_id_kw
import_record = ImportRecord.objects.get(pk=body[body_import_record_id])
requests_ali = import_record.access_level_instance

elif param_import_record_id and param_import_record_id in params:
import_record = ImportRecord.objects.get(pk=params[param_import_record_id])
elif param_import_record_id and (param_import_record_id in request.POST or param_import_record_id in request.GET):
import_record_pk = request.POST.get(param_import_record_id, request.GET.get(param_import_record_id))
import_record = ImportRecord.objects.get(pk=import_record_pk)
requests_ali = import_record.access_level_instance

elif analysis_id_kwarg and analysis_id_kwarg in kwargs:
Expand Down

0 comments on commit 53eb1a1

Please sign in to comment.