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 link permission checked

ulferts2ae867bf3c29
diff --git a/lib/api/v3/work_packages/create_form_representer.rb b/lib/api/v3/work_packages/create_form_representer.rb
index a022d379984..c936ebc9175 100644
--- a/lib/api/v3/work_packages/create_form_representer.rb
+++ b/lib/api/v3/work_packages/create_form_representer.rb
@@ -54,7 +54,7 @@ module API
link :commit do
if represented.project &&
- current_user.allowed_to?(:edit_work_packages,
+ current_user.allowed_to?(:add_work_packages,
represented.project) &&
@errors.empty?
{