From 398ba134ad253dba0c5de6f4bc40cd8e17766fc7 Mon Sep 17 00:00:00 2001 From: Mikael Solstad Date: Fri, 29 Nov 2024 09:09:11 +0100 Subject: [PATCH] Make organisations that are permitted to fetch instances via policy files behave like app owners --- src/Storage/Controllers/InstancesController.cs | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Storage/Controllers/InstancesController.cs b/src/Storage/Controllers/InstancesController.cs index 0816f569..3acb8ffb 100644 --- a/src/Storage/Controllers/InstancesController.cs +++ b/src/Storage/Controllers/InstancesController.cs @@ -135,11 +135,9 @@ public async Task>> GetInstances(InstanceQu { return Forbid(); } - } - else - { - appOwnerRequestingInstances = true; - } + } + + appOwnerRequestingInstances = true; } else if (userId != null) {