diff --git a/src/backend/api/Fusion.Resources.Api/Controllers/Requests/InternalRequestsController.cs b/src/backend/api/Fusion.Resources.Api/Controllers/Requests/InternalRequestsController.cs index 05f26273d..51bd0bc85 100644 --- a/src/backend/api/Fusion.Resources.Api/Controllers/Requests/InternalRequestsController.cs +++ b/src/backend/api/Fusion.Resources.Api/Controllers/Requests/InternalRequestsController.cs @@ -486,6 +486,8 @@ public async Task>> Get r.AnyOf(or => { + or.ResourcesRead(); + if (!query.HasFilter) return; var filter = query.Filter.GetFilterForField("assignedDepartment"); @@ -501,7 +503,6 @@ public async Task>> Get ); or.HaveOrgUnitScopedRole(DepartmentId.FromFullPath(departmentString), AccessRoles.ResourceOwner); } - or.ResourcesRead(); }); });