Skip to content

OpenProject is the leading open source project management software for product, project and portfolio management. A powerful Jira alternative with agile planning, issue tracking, roadmaps, Gantt charts, time tracking, collaboration features, and more. Available on premises or in the cloud. ⭐ Star us on GitHub

Return all active users of the project as available selections

Oliver Güntherb8d3dec644cc
diff --git a/modules/costs/lib/api/v3/time_entries/schemas/time_entry_schema_representer.rb b/modules/costs/lib/api/v3/time_entries/schemas/time_entry_schema_representer.rb
index 9798b1181a5..86726b9f306 100644
--- a/modules/costs/lib/api/v3/time_entries/schemas/time_entry_schema_representer.rb
+++ b/modules/costs/lib/api/v3/time_entries/schemas/time_entry_schema_representer.rb
@@ -103,9 +103,10 @@ module API
end
def allowed_user_href
- base_path = api_v3_paths.available_assignees(represented.project_id)
- api_v3_paths.filtered_path base_path,
- type: { operator: '=', values: ['User'] }
+ api_v3_paths.filtered_path api_v3_paths.principals,
+ status: { operator: '!', values: [Principal.statuses[:locked].to_s] },
+ type: { operator: '=', values: ['User'] },
+ member: { operator: '=', values: [represented.project_id] }
end
end
end