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

Merge branch 'release/12.4' into dev

Pavel Balashovdae7915a5b14
diff --cc modules/storages/lib/api/v3/storages/storage_representer.rb
index a3db398919e,e369cdf8820..a3004fc9b42
--- a/modules/storages/lib/api/v3/storages/storage_representer.rb
+++ b/modules/storages/lib/api/v3/storages/storage_representer.rb
@@@ -181,12 -99,8 +180,16 @@@ module API::V3::Storage
private
+ def storage_projects_ids(model)
+ model.projects.filter { |project| user_allowed_to_manage?(project) }.map(&:id)
+ end
+
+ def user_allowed_to_manage?(model)
+ current_user.allowed_to?(:manage_file_links, model.project)
+ end
++
+ def authorization_state
+ @authorization_state ||= @connection_manager.authorization_state
+ end
end
end