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

Fix another typo

Klaus Zandersf39bd0bf2ea2
diff --git a/lib/api/v3/attachments/attachments_by_container_api.rb b/lib/api/v3/attachments/attachments_by_container_api.rb
index 1512298e797..7afd6a54a6f 100644
--- a/lib/api/v3/attachments/attachments_by_container_api.rb
+++ b/lib/api/v3/attachments/attachments_by_container_api.rb
@@ -51,7 +51,7 @@ module API
# Additionally to what would be checked by the contract,
# we need to restrict permissions in some use cases of the mounts of this endpoint.
def restrict_permissions(permissions)
- authorize_in_project(permissions, projects: container.project) unless permissions.empty?
+ authorize_in_project(permissions, project: container.project) unless permissions.empty?
end
end