We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent dadc993 commit b9a6b07Copy full SHA for b9a6b07
api/features/import_export/permissions.py
@@ -15,7 +15,9 @@ def has_permission(
15
if not super().has_permission(request, view):
16
return False
17
18
- environment = Environment.objects.get(id=view.kwargs["environment_id"])
+ environment = Environment.objects.select_related(
19
+ "project__organisation",
20
+ ).get(id=view.kwargs["environment_id"])
21
organisation = environment.project.organisation
22
23
# Since feature imports can be destructive, use org admin.
0 commit comments