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

Rename contract action to work_package_shares/index

Aaron Contreras417f5a33b270
diff --git a/config/initializers/permissions.rb b/config/initializers/permissions.rb
index a8cefaad7c2..7b8cc633877 100644
--- a/config/initializers/permissions.rb
+++ b/config/initializers/permissions.rb
@@ -131,7 +131,7 @@ Rails.application.reloader.to_prepare do
},
permissible_on: :project,
require: :member,
- contract_actions: { shares: %i[index] }
+ contract_actions: { work_package_shares: %i[index] }
map.permission :view_members,
{ members: [:index] },
diff --git a/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.component.ts b/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.component.ts
index 242f2b0e2a5..d1ded7eadff 100644
--- a/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.component.ts
+++ b/frontend/src/app/features/work-packages/routing/wp-full-view/wp-full-view.component.ts
@@ -108,7 +108,7 @@ export class WorkPackagesFullViewComponent extends WorkPackageSingleViewBase imp
this.displayWatchButton = Object.prototype.hasOwnProperty.call(wp, 'unwatch') || Object.prototype.hasOwnProperty.call(wp, 'watch');
this.displayTimerButton = Object.prototype.hasOwnProperty.call(wp, 'logTime');
this.displayShareButton$ = this.configurationService.activeFeatureFlags.includes('workPackageSharing')
- && this.currentUserService.hasCapabilities$('shares/index', wp.project.id);
+ && this.currentUserService.hasCapabilities$('work_package_shares/index', wp.project.id);
// watchers
if (wp.watchers) {