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

remove todo - will do error handling when the need arises

ulferts1619b05c5bb0
diff --git a/app/controllers/work_packages/shares_controller.rb b/app/controllers/work_packages/shares_controller.rb
index daa2d0d0a55..8a3b8502d64 100644
--- a/app/controllers/work_packages/shares_controller.rb
+++ b/app/controllers/work_packages/shares_controller.rb
@@ -39,7 +39,6 @@ class WorkPackages::SharesController < ApplicationController
end
def create
- # Todo: error handling?
WorkPackageMembers::CreateOrUpdateService
.new(user: current_user)
.call(entity: @work_package,
@@ -50,7 +49,6 @@ class WorkPackages::SharesController < ApplicationController
end
def update
- # TODO: error handling
WorkPackageMembers::UpdateService
.new(user: current_user, model: @share)
.call(role_ids: find_role_ids(params[:role_ids]))
@@ -59,7 +57,6 @@ class WorkPackages::SharesController < ApplicationController
end
def destroy
- # TODO: error handling
WorkPackageMembers::DeleteService
.new(user: current_user, model: @share)
.call